Visual processing device, display device, and integrated circuit

ABSTRACT

The invention achieves a visual processing device that can execute precise contrast adjustment on image signals that have been input and that does not cause discrepancies in the output timing of the image signals that are output. The visual processing device is provided with a gain-type visual processing portion that outputs a first gain signal having predetermined gain characteristics with respect to the input image signal, and a correction portion that corrects the input image signal based on the first gain signal.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to visual processing devices, displaydevices, and integrated circuits, and in particular relates to visualprocessing devices, display devices, and integrated circuits in whichthe contrast of an image is adjusted.

2. Description of the Related Art

Conventional color television receivers have performed contrastadjustment in order to adjust the image contrast.

With contrast adjustment, RGB signals are separated into a luminancesignal and color signals without disrupting the color balance, and thenthe contrast of the luminance signal is adjusted.

Color appears light in areas where the luminance signal level has beenincreased and, conversely, appears dark in areas where the luminancesignal level has been reduced, and leads to an output that is unnatural,and thus the level of the color signal also is increased or decreased incorrespondence with the change in the luminance signal level.

The contrast adjustment circuit of a conventional display device isdescribed using FIG. 52. FIG. 52 is a block diagram showing theconfiguration of the contrast adjustment circuit of a conventionaldisplay device. In FIG. 52, a Y matrix 100 converts the R, G, and Bsignals to a luminance signal Ya. Similarly, a R-Y matrix 101 convertsthe R, G, and B signals to a R-Y color signal, and a B-Y matrix 102converts the R, G, and B signals to a B-Y color signal. A gammacorrection signal 104 converts the linearity of the luminance signal Yato a luminance signal Yb. The gamma correction circuit 104 isconstituted by a lookup table (hereinafter referred to as “LUT”) such asthat shown in FIG. 53, to which table values having gamma correctioncharacteristics are written. Here, the horizontal axis is the input Yaand the vertical axis is the output Yb.

A division circuit 105 divides the luminance signal Yb by the luminancesignal Ya to obtain the conversion ratio Yb/Ya. A coefficient unit 106performs a computation with the conversion ratio Yb/Ya and a coefficientK to obtain a conversion coefficient Kc for amplifying the color signal,where Kc=1+K(Yb/Ya−1). Here, an increase in the color signal can beinhibited by changing the coefficient K. Multipliers 107 and 108multiply the output of the R-Y matrix 101 and the output of the B-Ymatrix 102 by the conversion coefficient Kc, creating a color (R-Y)signal and a color (B-Y) signal that correspond to the adjustment madeto the luminance contrast (for example, see Japan Patent ApplicationPublication JP-A-04-152788).

However, contrast adjustment circuits having the above configurationhave the problem that for the color signal, the process of obtaining acoefficient for multiplication by the multiplier and then multiplyingthe color signal by the coefficient that has been obtained is performedafter the luminance signal has been divided by the division circuit (theprocess of dividing the luminance signal includes numerous computationsand as such it takes time before the result of the division is output,thus causing a delay), and therefore a discrepancy occurs between theoutput timing of the luminance signal to be output and the output timingof the color signals to be output, and, additionally, a delay means orthe like for synchronizing the timing of the output luminance signal andthe output color signals is necessary.

The issue to be solved by the invention is to achieve a visualprocessing device that can execute precise contrast adjustment on aninput image signal and that does not lead to discrepancies in the outputtiming of the image signal that is output. Another object is to achievea display device that is provided with this visual processing device,and an integrated circuit that includes this visual processing device.

SUMMARY OF THE INVENTION

A first aspect of the invention is a visual processing device forcorrecting and then outputting an image signal that is input, and thatis furnished with a visual processing portion and a correction portion.The visual processing portion outputs a first gain signal havingpredetermined gain characteristics for the image signal. The correctionportion corrects the image signal based on the first gain signal.

With this visual processing device, a first gain signal havingpredetermined gain characteristics for the image signal is output, andthe image signal that has been input to the visual processing device iscorrected based on the first gain signal, and thus it is possible toachieve precise correction processing with a simple structure. That is,image signals are corrected using a gain signal rather than throughdirect correction of the grayscale, and this allows image signals to becorrected through simple processing and allows the scale of the circuitto be reduced if hardware is used, for example. Since the correction ofimage signals is achieved through correction by the gain signal, theoutput timing of the output image signals after correction can besynchronized with ease.

A second aspect of the invention is the first aspect of the invention,further including a gain limit portion that limits the first gain signalat a predetermined limit value that has been set and outputs a secondgain signal. The correction portion corrects the image signal based onthe second gain signal.

With this configuration, the gain is suppressed at vivid colors by apredetermined limit value, and this allows the gain signal to be limitedat vivid colors even when the contrast of the image is adjusted and itis possible to prevent color saturation at deep red or deep blue, forexample. Further, since the predetermined limit value can be arrived atusing simple hardware, the limit value can be changed for each pixel.

A third aspect of the invention is the first aspect or the second aspectof the invention, further including a spatial processing portion thatperforms a predetermined spatial processing on the image signal andoutputs a processed signal. The visual processing portion outputs afirst gain signal that has gain characteristics based on the imagesignal and the processed signal.

Thus, by using a processed signal that has been subjected to spatialprocessing, it is possible to correct the image signal with gaincharacteristics that are different for the dark regions and the lightregions of the image, and thus the contrast of both can be adjustedideally without saturating bright regions in the background when thedark regions of an image are made brighter. It is also possible toadjust the contrast in such a manner that bright pixels surrounded bydark do not overflow and become saturated.

A fourth aspect of the invention is any one of the first through thirdaspects of the invention, in which the visual processing portionincludes a two-dimensional lookup table whose inputs are the imagesignal and the processed signal.

Thus, it is possible to achieve different visual characteristics byrewriting the data of the lookup table. It is also possible to achievecomplex, non-linear two-dimensional gain characteristics with ease.Moreover, by storing data based on the two-dimensional gaincharacteristics, the memory capacity can be made smaller than if gammaconversion values are taken as they are as the data of the lookup table.

A fifth aspect of the invention is any one of the first through fourthaspects of the invention, in which the image signal is a luminancesignal and a color signal, and the correction portion includes a firstmultiplication portion that multiplies the luminance signal and thesecond gain signal and outputs a corrected luminance signal and a secondmultiplication portion that multiplies the color signal and the secondgain signal and outputs a corrected color signal.

With this configuration, the gain signal that has been kept down by thepredetermined limit value can be corrected further by multiplying itwith the luminance signal and with the color difference signal, and thusthe contrast of the image can be corrected while suppressing colorsaturation and retaining the color balance.

A sixth aspect of the invention is any one of the first through fourthaspects of the invention, in which the image signal is an RGB signal,and the correction portion multiplies the RGB signal and the second gainsignal and outputs a corrected RGB signal.

Accordingly, a gain signal that has been kept down by the predeterminedlimit value can be corrected further by multiplying it with the RGBsignal, and thus the contrast of the image can be corrected whilesuppressing color saturation and retaining the color balance.

A seventh aspect of the invention is any one of the first through sixthaspects of the invention, further including a maximum value detectionportion that detects a maximum value when the image signal is convertedto an RGB signal, and a first limit value calculation portion thatcalculates a predetermined limit value for suppressing color saturationbased on the maximum value that has been detected.

With this configuration, it is also possible to detect the maximum valueof the gain signal at which the corrected image signal becomes colorsaturated, and calculate a limit value that does not result in colorsaturation.

An eighth aspect of the invention is any one of the first throughseventh aspects of the invention, further including a signal leveldetection portion that calculates a predetermined limit value accordingto a mean value of the signal level that has been detected from theimage signals in a single frame or a single field.

With this configuration, it is also possible to set the limit valueaccording to the main signal that is detected from the image signal, andthus the gain signal can be limited in bright images to suppress thesignal level. Thus, it is possible to increase the heat resistance andcurb power consumption in a display device, such as a plasma displaypanel. Additionally, since it is possible to keep the gain signal belowthe level at which the function of lowering the overall screenbrightness when the mean signal level of the image to be displayedexceeds a predetermined level is activated, even in a plasma displaypanel with this function, it is possible to achieve contrast adjustmentthat is effective.

A ninth aspect of the invention is any one of the first through eighthaspects of the invention, further including a skin color detectionportion that calculates a predetermined limit value according to adegree of likeness to skin color that is detected based on a weightfunction that has been set in advance for the image signal.

With this configuration, it is possible to set the limit value afterdetecting skin color, and thus the limit value can be lowered for brightskin color to suppress color saturation and also to prevent faces fromappearing shiny. It is also possible that the gradation of faces inbright regions is not saturated.

A tenth aspect of the invention is any one of the first through ninthaspects of the invention, further including a data reception portionthat receives data that have been transmitted or broadcast, a programinformation separating portion that separates program information fromthe data that have been received, and a broadcast content detectionportion that calculates a predetermined limit value according to thebroadcast contents that are detected from the program information.

With this configuration, it is possible to set an ideal limit value foreach content type, and it is possible to set a limit value that matchesthe contrast adjustment value necessary for each content type.

An eleventh aspect of the invention is any one of the first throughtenth aspects of the invention, further including a data receptionportion that receives data that have been transmitted or broadcast, andan electric field strength detection portion that detects an electricfield strength value when the data are received and calculates apredetermined limit value according to the electric field strengthvalue.

With this configuration, it is possible to detect images whose electricfield is weak and the SIN ratio of received data is poor and then limitthe gain signal for the entire image, and the enhancement of noise inimages with a poor S/N ratio can be inhibited.

A twelfth aspect of the invention is a display device that includes adata reception portion that receives image data that have beentransmitted or broadcast, a decoding portion that decodes the image datathat are received into video data, the visual processing deviceaccording to any one of the first through eleventh aspects of theinvention for visually processing the decoded video data and outputtingan output signal, and a display portion for performing a display of theoutput signal that has been visually processed by the visual processingdevice.

With this configuration, it is possible to achieve a display device withwhich visual processing of the image through brightness adjustment inwhich color saturation is suppressed is possible. By limiting the gainsignal, the signal level in bright images is suppressed and it ispossible to increase the heat resistance and curb power consumption inthe display portion, which for example is a plasma display panel. Thesame effects are attained in liquid crystal panels, in which thebacklight is adjusted according to the brightness of the display screen.

A 13th aspect of the invention is a display device including a datainput portion that inputs image data, the visual processing deviceaccording to any one of the first through eleventh aspects of theinvention for visually processing the input image data and outputting anoutput signal, and a display portion for performing a display of theoutput signal that has been visually processed by the visual processingdevice.

With this configuration, it is possible to achieve the same effects witha display device as with the visual processing device. It should benoted that, aside from a display device, it is also possible to achievean image-capturing device or a portable information terminal device thatis provided with a visual processing device. The image-capturing devicecan have a structure that includes an image-capturing portion forcapturing images, and a visual processing device that receives theimages captured by the image-capturing portion as input images andperforms visual processing.

With this configuration, it is possible to obtain the same effects withan image-capturing device as with a visual processing device.

It is possible for a portable information device to have a structurethat includes a data reception portion that receives image data thathave been transmitted or broadcast, a visual processing device thatvisually processes the image data that have been received and outputs anoutput signal, and a display portion for performing a display of thevisually processed output signal.

With this configuration, it is possible to obtain the same effects witha portable information device as with a visual processing device.

It is also possible for a portable information device of the inventionto have a configuration including an image-capturing portion forcapturing images, a visual processing device that receives the imagescaptured by the image-capturing portion as input images, performs visualprocessing, and outputs an output signal, and a data transmissionportion for transmitting the visually processed output signal.

With this configuration, it is possible to obtain the same effects witha portable information device as with a visual processing device.

A 14th aspect of the invention is any one of the first through eleventhaspects of the invention, further including a spatial processing portionthat performs a predetermined spatial processing on the image signal andoutputs a processed signal. The visual processing portion outputs a gainsignal that has predetermined gain characteristics based on the imagesignal and the processed signal. The correction portion corrects thegrayscale of the image signal based on the gain signal.

With this configuration, using a processed signal, which is the shadeinformation of local regions, it is possible to correct the image signalwith gain characteristics that are different for the dark regions andthe bright regions in the image, and thus ideal contrast adjustment forboth regions is possible without saturating the bright regions in thebackground if dark regions in the image are made brighter, and colorsaturation is suppressed. The gain characteristics change more smoothlywith respect to the image signal than do the grayscale conversioncharacteristics, and thus sufficient processing precision can be ensuredeven if the image signal and the processed signal are decimated roughly,and the bit precision of the signal can be lowered. Thus, the scale ofthe circuitry of the hardware of the visual processing portion can bereduced, and in a configuration where a lookup table is provided, thememory capacity can be reduced.

A 15th aspect of the invention is any one of the first through eleventhaspects, and the 14th aspect, of the invention, in which the visualprocessing portion outputs a gain signal in which the band of thespatial frequency that can respond to the image signal is limited.

With this configuration, a drop in the contrast of the corrected outputcan be inhibited even if the value of the luminance signal that is inputis changed by a value that is significantly larger than the value of theprocessed signal. Thus, for example it is possible to correct and outputan image signal having a tiny high-frequency component on a signal whoseluminance signal level is high (such as an image signal corresponding toa detail portion with a high luminance) without lowering the contrast.

A 16th aspect of the invention is any one of the first through eleventh,14th, and 15th aspects of the invention, in which the correction portionhas a contrast enhancement portion that outputs an enhanced signal thatis obtained by enhancing the contrast of the image signal, and thecorrection portion corrects the grayscale of the enhanced signal.

Thus, it is possible to further enhance to contrast of the image signal.

A 17th aspect of the invention is any one of the first through eleventh,and 14th through 16th aspects of the invention, in which the contrastenhancement portion outputs the enhanced signal based on the imagesignal and a band limited signal that is obtained by limiting thespatial frequency band of the image signal.

Thus, it is possible to enhance the contrast of the image signal basedon the target pixels and the brightness around them.

An 18th aspect of the invention is any one of the first througheleventh, and 14th through 17th aspects of the invention, in which thecontrast enhancement portion is provided with a two-dimensional lookuptable whose inputs are the band limited signal and the image signal.

Thus, by setting the results of a plurality of different computations itis possible to perform various types of contrast enhancement.

A 19th aspect of the invention is any one of the first through eleventh,and 14th through 17th aspects of the invention, in which the contrastenhancement portion outputs an enhanced signal based on the ratio of theband limited signal to the image signal.

Thus, the contrast enhancement portion can enhance the contrastaccording to the ratio of the band limited signal to the image signal.

A 20th aspect of the invention is any one of the first through eleventh,and 14th through 17th aspects of the invention, in which the contrastenhancement portion outputs the enhanced signal based on the differencebetween the band limited image signal and the image signal.

Thus, the contrast enhancement portion can enhance the contrastaccording to the difference between the band limited signal and theimage signal.

A 21st aspect of the invention is any one of the first through eleventh,and 14th through 20th aspects of the invention, in which the visualprocessing portion outputs a gain signal whose spatial frequency bandthat can respond to the image signal has been limited, and thecorrection portion has a contrast enhancement portion that outputs anenhanced signal that is obtained by enhancing the contrast of the imagesignal. The correction portion corrects the grayscale of the enhancedsignal.

With this configuration, a drop in the contrast of the corrected outputcan be inhibited even if the value of the luminance signal that has beeninput is changed by a value that is significantly larger than the valueof the processed signal. Thus, for example it is possible to correct andoutput an image signal having a tiny high-frequency component on asignal whose luminance signal level is high (such as an image signalcorresponding to a detail portion with a high luminance) withoutlowering the contrast. It is also possible to enhance the contrast ofthe image signal.

A 22nd aspect of the invention is the first aspect of the invention,further including a gain control portion that corrects the first gainsignal with a predetermined correction value that has been set andoutputs a second gain signal. The correction portion corrects the imagesignal based on the second gain signal.

With this configuration, it is possible to enhance or suppress thecontrast with a correction value for each region of an image. Thus, itis possible to enhance dark regions, and particularly the region ofpeople's faces, in an image of a backlit scene to an appropriatebrightness, and it is possible to suppress the brightness at the highvivid colors of the background region. Consequently, it is possible toperform optimal brightness adjustment while for example suppressinggrayscale and color saturation at deep reds and deep blues. Also, sincethis configuration can be achieved through simple hardware, thecorrection value can be changed for each pixel.

A 23rd aspect of the invention is the 22nd aspect of the invention, inwhich the gain control portion magnifies or reduces the differencebetween the x1 signal and the first gain signal with a predeterminedcorrection value.

With this configuration, it is possible to increase or decrease thefirst gain signal with a predetermined correction value, allowing thecontrast to be enhanced or suppressed.

A 24th aspect of the invention is the 22nd aspect of the invention, inwhich the gain control portion interpolates or extrapolates the x1signal and the first gain signal with the predetermined correctionvalue.

With this configuration, it is possible to increase or decrease thefirst gain signal around the x1 signal, allowing the contrast to beenhanced or suppressed.

A 25th aspect of the invention is any one of the 22nd to 24th aspects ofthe invention, further including a spatial processing portion thatperforms a predetermined spatial processing on the image signal andoutputs a processed signal. The visual processing portion outputs afirst gain signal having predetermined gain characteristics based on theimage signal and the processed signal.

With this configuration, by using a processed signal, it is possible tocorrect the image signal with gain characteristics that are differentfor the dark regions and the light regions in the image, and thus thecontrast of both can be adjusted ideally without saturating the signalof bright regions of the background if dark areas in the image are madebrighter. Thus, dark regions, and particularly the facial region ofpeople, in backlit images can be enhanced to an appropriate brightness,and it is possible to keep the signal of the bright background regionfrom becoming saturated.

A 26th aspect of the invention is the 25th aspect of the invention, inwhich the visual processing portion has a two-dimensional lookup table.

With this configuration, by storing data based on the two-dimensionalgain characteristics, the memory capacity can be made smaller than ifgamma conversion values are stored as they are as table data. It is alsopossible to achieve different visual characteristics by rewriting thetable data. It is also possible to achieve complex, non-lineartwo-dimensional gain characteristics with ease.

A 27th aspect of the invention is any one of the 22nd to 26th aspects ofthe invention, in which the image signal is a luminance signal and acolor signal, and the correction portion includes a first multiplicationportion that multiplies the luminance signal and the second gain signaland outputs a corrected luminance signal, and a second multiplicationportion that multiplies the color signal and the second gain signal andoutputs a corrected color signal.

With this configuration, correction is performed by multiplying a gainsignal that has been enhanced or suppressed by a predeterminedcorrection value with both the luminance signal and the color signal,and thus it is possible to enhance or suppress the contrast of the imagewhile retaining the color balance and inhibiting color saturation.

A 28th aspect of the invention is any one of the 22nd to 26th aspects ofthe invention, in which the image signal is an RGB signal, and thecorrection portion multiplies the RGB signals and the second gain signaland outputs a corrected image signal.

With this configuration, correction is performed by multiplying a gainsignal enhanced or suppressed by a predetermined correction value withthe RGB signals, and thus it is possible to enhance or suppress thecontrast of the image while retaining the color balance and inhibitingcolor saturation.

A 29th aspect of the invention is any one of the 22nd to 28th aspects ofthe invention, further including a maximum value detection portion thatdetects a maximum value when the image signal is converted to an RGBsignal, and a correction value calculation portion that calculates thepredetermined correction value for suppressing color saturation based onthe maximum value that has been detected.

With this configuration, it is possible to detect the maximum value ofthe gain signal at which the corrected image signal becomes colorsaturated, and a correction value that does not result in colorsaturation can be corrected.

A 30th aspect of the invention is any one of the 22nd to 29th aspects ofthe invention, further including a signal level detection portion thatcalculates the predetermined correction value according to a mean valueof the signal level that has been detected from the image signals in asingle frame or a single field.

With this configuration, it is possible to set the correction valueaccording to the mean value of the signal levels detected from the imagesignals, and thus the gain signal can be corrected in bright images tosuppress the signal level. Thus, for example in display devices such asa plasma display panel, the heat resistance can be increased and powerconsumption can be curbed.

Additionally, since it is possible to keep the gain signal below thelevel at which the function of lowering the overall brightness of thescreen when the mean signal level of the image to be displayed exceeds apredetermined level is activated, even in a plasma display panel withthis function, it is possible to achieve contrast adjustment that iseffective.

A 31st aspect of the invention is any one of the 22nd to 30th aspects ofthe invention, further including a skin color detection portion thatcalculates the predetermined correction value according to a degree oflikeness to skin color that is detected based on a weight function thathas been set in advance for the image signal.

With this configuration, skin color can be detected in a backlit sceneand the correction value can be set, and thus it is possible to raisethe correction value for dark skin to brighten the image, allowingfacial regions to have an effect of illumination by auxiliary light withreflector board. It is also possible to prevent patchiness in facialskin color.

A 32nd aspect of the invention is any one of the 22nd to 31st aspects ofthe invention, further including a data reception portion that receivesdata that have been transmitted or broadcast, a program informationseparating portion that separates program information from the data thathave been received, and a broadcast content detection portion thatcalculates the predetermined correction value according to the broadcastcontents that are detected from the program information.

With this configuration, it is possible to set a correction value foreach content type, and it is possible to set a correction value thatfits with the ideal contrast for each content type.

A 33rd aspect of the invention is any one of the 22nd to 32nd aspects ofthe invention, further including a data reception portion that receivesdata that have been transmitted or broadcast, and an electric fieldstrength detection portion that detects an electric field strength valuewhen the data are received and calculates the predetermined correctionvalue according to the electric field strength value.

With this configuration, it is possible to detect images whose electricfield is weak and the S/N ratio of the received data is poor and thencontrol the gain signal for the entire image, and the enhancement ofnoise can be inhibited.

A 34th aspect of the invention is a display device that includes a datareception portion that receives image data that have been transmitted orbroadcast, a decoding portion that decodes the image data that arereceived into video data, the visual processing device according to anyone of the 22nd to the 33rd aspects of the invention for visuallyprocessing the decoded video data and outputting an output signal, and adisplay portion for performing a display of the output signal that hasbeen visually processed by the visual processing device.

With this configuration, it is possible to achieve a display device withwhich the brightness of the image can be adjusted through visualprocessing in which grayscale and color saturation is suppressed. Bycontrolling the gain signal, it is possible to suppress the signal levelin bright images and increase the heat resistance and curb powerconsumption in the display portion, which for example is a plasmadisplay panel. The same effects are attained in liquid crystal panels,for example, in which the backlight is adjusted according to thebrightness of the display screen.

A 35th aspect of the invention is a display device that includes a datainput portion that inputs image data, the visual processing deviceaccording to any one of the 22nd to the 33rd aspects of the inventionfor visually processing the input image data and outputting an outputsignal, and a display portion for performing a display of the outputsignal that has been visually processed by the visual processing device.

With this configuration, it is possible to achieve the same effects witha display device as with the visual processing device. It should benoted that, aside from a display device, it is also possible to achievean image-capturing device or a portable information terminal device thatis provided with a visual processing device.

The image-capturing device can have a structure that includes animage-capturing portion for capturing images, and a visual processingdevice that receives the images captured by the image-capturing portionas input images and performs visual processing.

With this configuration, it is possible to obtain the same effects withan image-capturing device as with a visual processing device.

It is possible for the portable information device to have a structurethat includes a data reception portion that receives image data thathave been transmitted or broadcast, a visual processing device thatvisually processes the image data that have been received and outputs anoutput signal, and display means for performing a display of thevisually processed output signal.

With this configuration, it is possible to obtain the same effects witha portable information device as with a visual processing device.

It is also possible for a portable information device of the inventionto have a structure that includes an image-capturing portion forcapturing images, a visual processing device that receives the imagescaptured by the image-capturing portion as input images, performs visualprocessing, and outputs an output signal, and a data transmissionportion for transmitting the visually processed output signal.

With this configuration, it is possible to obtain the same effects witha portable information device as with the visual processing device.

A 36th aspect of the invention is an integrated circuit that includesthe visual processing device according to any one of the first througheleventh aspects, and the 14th through 33rd aspects, of the invention.

With this configuration, it is possible to obtain the same effects withan integrated circuit as with the visual processing device.

According to the invention, it is possible to achieve a visualprocessing device that can execute precise contrast adjustment on imagesignals that are input and that does not lead to discrepancies in theoutput timing of the image signals that are output. It is also possibleto achieve a display device that is provided with this visual processingdevice, and an integrated circuit that includes this visual processingdevice.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing the configuration of the visualprocessing device according to the first embodiment of the invention.

FIG. 2 is an explanatory diagram describing the two-dimensionalgrayscale characteristics of the same.

FIG. 3 is an explanatory diagram describing the two-dimensional gaincharacteristics of the same.

FIG. 4 is a block diagram showing the configuration of the colorsaturation detection portion of the same.

FIG. 5 is an explanatory diagram describing the first limit valuecalculation portion of the same.

FIG. 6 is an explanatory diagram describing the limit valuedetermination portion of the visual processing device of the same.

FIG. 7 is an explanatory diagram describing the operation of the limitvalue determination portion of the same.

FIG. 8 is an explanatory diagram describing the gain limit value withthe gain characteristics of the same.

FIG. 9 is an explanatory diagram describing the gain limit value withthe grayscale characteristics of the same.

FIG. 10 is a block diagram showing the configuration of a first modifiedexample of the visual processing device of the same.

FIG. 11 is a block diagram showing the configuration of a secondmodified example of the visual processing device of the same.

FIG. 12 is an explanatory diagram describing the difference signal DIFFof the same.

FIG. 13 is a block diagram showing the configuration of a display deviceaccording to a second embodiment of the invention.

FIG. 14 is a block diagram showing the configuration of the skin colordetection portion of the same.

FIG. 15 is an explanatory diagram describing the skin color detectionportion of the same.

FIG. 16A is an explanatory diagram describing the weight value Ka forthe color signal CR of the same, FIG. 16B is an explanatory diagramdescribing the weight value Kb for the color signal CB of the same, andFIG. 16C is an explanatory diagram describing the weight value Kc forthe luminance signal Y of the same.

FIG. 17 is an explanatory diagram describing the broadcast contentdetection portion of the same.

FIG. 18 is a block diagram showing the configuration of the gain-typevisual processing portion according to a third embodiment of theinvention.

FIG. 19A is an explanatory diagram describing the range in which thebrightness information around the target pixels is extracted in thegain-type visual processing portion of the same, and FIG. 19B showsexamples of the signal waveforms of the Yin signal, the US signal, andthe USH signal in the gain-type visual processing portion 71 of thesame.

FIG. 20A is an explanatory diagram describing the grayscale conversioncharacteristics when the gain signal is not band limited, and FIG. 20Bis an explanatory diagram describing the grayscale conversioncharacteristics when the gain signal has been band limited.

FIG. 21 is a block diagram showing the configuration of a gain-typevisual processing portion serving as a third modified example.

FIG. 22 is a block diagram showing the configuration of a gain-typevisual processing portion serving as a fourth modified example.

FIG. 23 is an explanatory diagram describing an example of theconfiguration when the visual processing device is provided with acontrast enhancement portion, in a fourth embodiment of the invention.

FIG. 24 is an explanatory diagram describing the grayscale conversioncharacteristics when contrast conversion is performed in the visualprocessing device of the same.

FIG. 25 is an explanatory diagram describing the characteristics of thecontrast enhancement portion of the same.

FIG. 26 is a block diagram showing the configuration of the contrastenhancement portion of the same.

FIG. 27 is a block diagram showing the configuration of the contrastenhancement portion serving as a fifth modified example.

FIG. 28 is a block diagram showing the configuration of the contrastenhancement portion serving as a sixth modified example.

FIG. 29 is an explanatory diagram describing the characteristics of thecontrast enhancement portion of the sixth modified example.

FIG. 30 is a structural diagram showing a configuration including thecontrast enhancement portion serving as a seventh modified example.

FIG. 31 is a structural diagram showing a configuration including thecontrast enhancement portion serving as an eighth modified example.

FIG. 32 is a block diagram showing another modified example of thegain-type visual processing portion according to an embodiment of theinvention.

FIG. 33 is a block diagram of a visual processing device according to afifth embodiment of the invention.

FIG. 34 is a block diagram of the color saturation detection portion ofthe fifth embodiment.

FIG. 35 is an explanatory diagram of the first correction valuecalculation portion of the fifth embodiment.

FIG. 36 is an explanatory diagram of the correction value determinationportion of the visual processing device of the fifth embodiment.

FIG. 37 is an explanatory diagram of the operation of the correctionvalue determination portion of the fifth embodiment.

FIG. 38 is an explanatory diagram of the gain correction value for thegain characteristics in the fifth embodiment.

FIG. 39 is an explanatory diagram of the gain correction value for thegrayscale characteristics in the fifth embodiment.

FIG. 40 is a block diagram of a first modified example of the visualprocessing device of the fifth embodiment.

FIG. 41 is a block diagram of a second modified example of the visualprocessing device of the fifth embodiment.

FIG. 42 is an explanatory diagram of the difference signal DIFF in thefifth embodiment.

FIG. 43 is a block diagram of a display device according to a sixthembodiment of the invention.

FIG. 44 is a block diagram of the skin color detection portion in thesixth embodiment.

FIG. 45A is an explanatory diagram describing the weight value Ka forthe color signal CR in the sixth embodiment, FIG. 45B is an explanatorydiagram describing the weight value Kb for the color signal CB in thesixth embodiment, and FIG. 45C is an explanatory diagram describing theweight value Kc for the luminance signal Y in the sixth embodiment.

FIG. 46 is an explanatory diagram of the broadcast content detectionportion of the sixth embodiment.

FIG. 47 is the overall configuration of a content provision systemaccording to a seventh embodiment of the invention.

FIG. 48 is a front view of a portable telephone installed with thevisual processing device according to an embodiment of the invention.

FIG. 49 is a block diagram describing the overall configuration of thatportable telephone.

FIG. 50 is an explanatory diagram describing the overall configurationof the digital broadcast system of the seventh embodiment.

FIG. 51 is a block diagram showing the configuration of a computeraccording to an embodiment of the invention.

FIG. 52 is a block diagram showing the structure of a conventionalcontrast adjustment circuit.

FIG. 53 is a characteristic diagram showing the characteristics ofconventional gamma conversion.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Below, visual processing devices according to embodiments of theinvention are described with reference to the drawings.

FIRST EMBODIMENT

First, the visual processing device according to a first embodiment isdescribed. The visual processing performed here is processing for givingcharacteristics that are close to human vision, and is for determiningthe value of an output signal according to the contrast between thevalue of a target pixel of an image signal that has been input and thevalues of pixels around that target pixel.

Examples of processing that may be adopted include backlight correction,knee processing, D range compression, color processing, and brightnessadjustment (including gradation processing and contrast adjustment). Itshould be noted that in this invention, the luminance signal is definedas the Y component (the luminance component and the brightnesscomponent) in a YCbCr color space, a YUV color space, a Lab color space,a Luv color space, a YIQ color space, and a YPbPr color space.

Similarly, the color signal is defined as the CbCr component in a YCbCrcolor space, the UV component in a YUV color space, the ab component ina Lab color space, the uv component in a Luv color space, and the IQcomponent in a YIQ color space.

FIG. 1 is a block diagram of a visual processing device 1 according tothe first embodiment of the invention.

In FIG. 1, the visual processing device 1 is provided with a gain-typevisual processing portion 70 for outputting a first gain signal havingspecific gain characteristics for the image signal, a gain limit portion5 for limiting the first gain signal at a predetermined limit value thathas been set and outputting a second gain signal, and a correctionportion 9 for correcting the image signal based on the second gainsignal.

The visual processing device 1 is also furnished with a limit valuedetermination portion 4 for calculating the limit value L for limitingthe first gain signal GAIN, and a color saturation detection portion 10for detecting color saturation.

The gain-type visual processing portion 70 is provided with a visualprocessing portion 3 and a spatial processing portion 2.

Thus, the visual processing device 1 performs visual processing on theimage signals Yin, CRin, and CBin, and outputs visually processed imagesYout, CRout, and CBout.

The spatial processing portion 2 obtains the values of target pixels tobe targeted for spatial processing, and the values of pixels in theregion around the target pixels (hereinafter, referred to as“surrounding pixels”), from the luminance signal Yin. The spatialprocessing portion 2 performs spatial processing on the luminance signalYin for each pixel of the original image that was obtained and outputsan unsharp signal US. The unsharp signal US is a blur signal that isobtained through bandwidth limit of the luminance signal with a low-passspatial filter, for example.

The visual processing portion 3 obtains the first gain signal GAIN fromthe luminance signal Yin and the unsharp signal US through atwo-dimensional gain function, and outputs the first gain signal GAIN.

The two-dimensional gain function is set to a function in which theslope of the grayscale conversion curve is the gain so that input/outputvalues equivalent to the grayscale conversion characteristics shown inFIG. 2, for example, are produced. Thus, by multiplying the value of theluminance signal Yin and the value of the output calculated by thetwo-dimensional gain function, it is possible to obtain input/outputvalues equivalent to the grayscale conversion characteristics shown inFIG. 2.

The limit value determination portion 4 calculates the limit value L forlimiting the first gain signal GAIN. The image signal is corrected bythe limit value L to limit the contrast. For example, in bright images,the brightness of the image can be suppressed to inhibit grayscalesaturation and color saturation.

The gain limit portion 5 limits the first gain signal GAIN by the limitvalue L and outputs a second gain signal GAIN2. By limiting the firstgain signal GAIN, color saturation can be kept from occurring when thebrightness is adjusted.

The correction portion 9 is provided with a multiplication portion 6, amultiplication portion 7, and a multiplication portion 8, and correctsthe image signal according to the second gain signal GAIN2.

The multiplication portion 6 multiplies the second gain signal GAIN2 andthe luminance signal Yin, and outputs a corrected luminance signal Yout.This corrected luminance signal Yout is an output that is equivalent tothe grayscale conversion characteristics shown in FIG. 2. Themultiplication portion 7 and the multiplication portion 8 multiply thesecond gain signal GAIN2 and the input color signals CRin and CBin, andoutput corrected color signals CRout and CBout.

Next, the visual processing device 1 of the first embodiment isdescribed in further detail.

In this embodiment of the invention, the visual processing device 1 isset so as to have the two-dimensional grayscale conversioncharacteristics shown in FIG. 2. Here, the horizontal axis of FIG. 2 isthe luminance signal Yin that is input, and the vertical axis is theconverted luminance signal Yout.

The two-dimensional grayscale conversion characteristics are theinput/output characteristics of the grayscale conversion for determiningthe value of an output with respect to an input, where the input is thevalue of the unsharp signal US and the value of the luminance signalYin. For example, it has predetermined grayscale conversioncharacteristics according to the signal level of the unsharp signalsUS0, US1, US2 . . . USn in FIG. 2. Thus, when the pixel value of theluminance signal Yin is an 8-bit value, the pixel value of the outputsignal Yout for the value of the luminance signal Yin separated into 256levels is determined based on the predetermined two-dimensionalgrayscale conversion characteristics. The grayscale conversioncharacteristics are expressed by a grayscale conversion curve that haspredetermined gamma properties, and the relationship is such that theoutput monotonically decreases along with the subscript of the unsharpsignal. It should be noted that the output of the grayscale conversioncurve may have the substantial monotonic decrease characteristics withthe subscript of the unsharp signal even if the output does not decreasein some part with the subscript of the unsharp signal. As shown in FIG.2, in the two-dimensional grayscale conversion characteristics, therelationship where (the output value when US=US0)≧(the output value whenUS=US1)≧ . . . ≧(the output value when US=USn) holds for all brightnessvalues of the luminance signal Yin. In this way, visual processing thatis close to the characteristics of human vision can be achieved throughgradation processing that determines the output signal based on thecontrast between the target pixel values and the surrounding pixelvalues of the image signal that has been input.

The visual processing portion 3 is described next. FIG. 3 shows theoutput of the first gain signal GAIN of the visual processing portion,and has two-dimensional gain characteristics in which the gain is theslope of the grayscale conversion curve of FIG. 2. Here, the horizontalaxis of FIG. 3 is the input luminance signal Yin and the vertical axisis the output of the first gain signal GAIN. Here, the relationship issuch that the output monotonically decreases along with the subscript ofthe unsharp signal. In the Yin-Gain input/output characteristics shownin FIG. 3, the relationship where (the value of the output GAIN whenUS=US0)≧(the value of the output GAIN when US=US1)≧ . . . ≧(the value ofthe output GAIN when US=USn) holds for all brightness values of theluminance signal Yin.

The visual processing device 1 of the first embodiment of the inventionprocesses image signals using a gain signal, and using a gain signal hasthe advantage that it is possible to reduce the circuit scale. This isbecause the Yin-Gain input/output curve (for example, the Yin-Gaininput/output curve shown in FIG. 3) changes more smoothly with respectto the luminance value Yin than does the grayscale conversion curve (forexample, the Yin-Yout input/output curve shown in FIG. 2), and thussufficient processing precision can be ensured even if the luminancesignal Yin and the unsharp signal US are decimated roughly, and the bitprecision of the luminance signal Yin that is input to the visualprocessing portion 3 can be lowered. In particular, if Yin is a smallvalue (corresponding to a dark portion), then the curve for determiningthe input/output characteristics has a steep slope. For example, in theYin-Yout input/output curve shown in FIG. 2, the steep curve portion inthe lower left part of FIG. 2 corresponds to this. To achieve grayscaleconversion with input/output characteristics based on such a steepcurve, high resolution is necessary in the grayscale conversion. Whenexecuting such grayscale conversion, it is necessary to achieve a highresolution in the steep curve portion of the Yin-Yout input/outputcurve, and thus it becomes necessary for the input and the output to begiven many bit numbers. On the other hand, with the Yin-Gaininput/output curve (for example, the Yin-Gain input/output curve shownin FIG. 3), there are no steep portions in the input/outputcharacteristics even if the Yin value is small, and thus high resolutionis not necessary for grayscale conversion. Consequently, in Yin-Gaininput/output characteristic conversion such as that shown in FIG. 3, itis not necessary to assign many bit numbers to the input and the output.Thus, the scale of the circuit can be reduced in the hardware and logicdesign.

It should be noted that the visual processing portion 3 is constitutedby a two-dimensional lookup table (hereinafter, referred to as “2D LUT”)that gives the relationship between the first gain signal GAIN and theluminance signal Yin and the unsharp signal US, and it is possible tooutput the first gain signal GAIN with respect to a luminance signal andan unsharp signal US by referencing the 2D LUT. Thus, by storing gainvalues rather than grayscale conversion values in the 2D LUT, it ispossible to reduce the number of bits of the two input signals, and thisallows the memory capacity to be significantly reduced.

Having a 2D LUT serve as the visual processing portion 3 allows complexgain characteristics to be created in advance, and allows the visualprocessing portion 3 to be provided as a read-only memory (hereinafter,“ROM”). To make it possible to update the gain characteristics, it isalso possible to use a rewritable memory such as a random access memory(hereinafter, “RAM”) for the visual processing portion 3. The 2D LUTstores gain data having two-dimensional gain characteristics that havebeen set in advance.

Further, it is possible to obtain various visual effects by changing thetwo-dimensional gain characteristics.

It is also possible to register the two-dimensional gain data as profiledata from the outside. By rewriting the two-dimensional gain data, indevices that handle images, such as a computer, television, digitalcamera, portable telephone, PDA, printer, or scanner, it is possible toachieve visual effects, such as gradation processing of the imagesignal, compression of the dynamic range (hereinafter, referred to asthe “D range”), knee processing, and color processing with the samevisual processing circuit and visual processing program, and thus thevisual processing device 1 can be achieved by a generalized integratedcircuit or a generalized visual processing program. Rewriting andregistering two-dimensional gain data from the outside will be explainedin detail later.

Next, the spatial processing portion 2 obtains the pixel values of thetarget pixels to be targeted for spatial processing and the pixel valuesof the pixels surrounding the target pixels from the luminance signalYin. The spatial processing portion 2 then executes spatial processingon the luminance value Yin for each pixel in the original image that wasobtained and outputs an unsharp signal US.

The spatial processing portion 2 obtains the unsharp signal US byperforming a low-pass spatial filter computation on the target pixels ofthe luminance signal Yin that passes only the low-region space. In thisfilter computation, the pixel values of the target pixels and thesurrounding pixels are calculated by Formula I, for example.US=(Σ[Wij]×[Aij])/(Σ[Wij]) Formula I

Here, [Wij] is the weight coefficient of the pixel of the target pixelsand surrounding pixels that is located in the i-th row j-th column, and[Aij] is the pixel value of the pixel of the target pixels andsurrounding pixels that is located in the i-th row j-th column. Thesymbol Σ means to take the sum of the pixels of the target pixels andthe surrounding pixels.

More specifically, a case in which the weight coefficient [Wij] is 1 andthe pixel value [Aij] is expressed as A(i, j) is described. As for thepixel values of the target pixels, A(1, 1) is 128, A(0, 0) is 110,A(0, 1) is 115, A(0, 2) is 117, A(1, 0) is 123, A(1, 2) is 120, A(2, 0)is 120, A(2, 1) is 127, and A(2, 2) is 125. At this time, to obtain anunsharp signal from this region of 3 pixels×3 pixels, the unsharp signalis obtained through Formula I by performing the calculationUS=(128+110+115+117+123+120+120+127+125)/9.

It should be noted that it is possible to assign a weight coefficientwith a smaller value the larger the absolute value of the differencebetween the pixel values, and it is also possible to assign a smallerweight coefficient the greater the distance from the target pixels.

The region of the surrounding pixels is a size that is set in advancedepending on the effect. The surrounding pixel region is extracted froma relatively large region in order to obtain the visual effect, and forexample, when the size of the image is XGA (1024×768), the surroundingpixel region is at least 80 pixels×80 pixels.

As the low-pass spatial filter it is possible to use a FIR (FiniteImpulse Responses)-type low-pass spatial filter or an IIR (InfiniteImpulse Responses)-type low-pass spatial filter, which are commonly usedto create unsharp signals US.

The color saturation detection portion 10 is described next using FIG. 4and FIG. 5. FIG. 4 is a block diagram of the color saturation detectionportion 10.

In FIG. 4, an RGB conversion portion 11 creates an RGB signal from theluminance signal Yin and the color signals CBin and CRin. A maximumvalue detection portion 12 detects the highest value among the redsignal (hereinafter, “R signal”), the green signal (hereinafter, “Gsignal”), and the blue signal (hereinafter, “B signal”). A first limitvalue calculation portion 13 calculates a limit value L1 from themaximum value of the RGB signals that have been detected. A limit valuedetermination portion 4 determines the limit value L in reference to thelimit value L1, a limit value L2 that has been set in a register 20, andlimit values L3 to L6 that are input from the outside, and outputs thelimit value L. The limit value determination portion 4 is described indetail later.

Specifically, the first limit value calculation portion 13 calculates alimit value L1 for each pixel of the image signal that has been inputbased on a curve 1 that has been set so that the maximum value of thegain signal GAIN2 after control is equal to or lower than the value ofthe curve 2 shown in FIG. 5. Here, curve 2 indicates the maximum valueof the limit value that does not cause color saturation.

As long as the ratio of the R signal, the G signal, and the B signal ofthe RGB signal can be kept constant, the color will not change even ifthe RGB signals are multiplied by the first gain signal GAIN. However,when the maximum value of any one of the signals become saturated it isnot possible to increase the signal level further, and thus the balanceof the ratio of the RGB signals is disrupted and an unnatural colorchange occurs as a result. To prevent such color saturation, the maximumvalue of the signal level should not be exceeded, even when the maximumvalue of the RGB signals is multiplied by the first gain signal GAIN.For example, the limit value is 2.0 when the maximum value of the RGBsignals that have been detected is 127. Similarly, the limit value is3.0 when the maximum value is 84, and the limit value is 1.2 when themaximum value is 212. Here, the RGB signals are signals within the rangeof 0 to 255. Thus, taking Smax as the maximum value of the RGB signals,and Lmax as the maximum value of the limit value L after control forsuppressing grayscale saturation and color saturation, the followingrelationship exists.Lmax=255/Smax

In this way, grayscale saturation and color saturation can be inhibitedand the color balance can be maintained by setting a limit value L1(curve 1) that satisfies the condition of gain signal GAIN2<Lmax (curve2). In addition, unnatural color changes do not occur in the image whenits contrast is enhanced.

It should be noted that the curve 1 of the limit value L1 can be astraight line approximation, or a straight line that is a broken lineapproximation, of curve 2. When the maximum value of the RGB signal is asmall value, preferably it is kept to a value at which the noise is notenhanced.

In this way, the Yin signal, the CBin signal, and the CRin signal areconverted to RGB signals, and from the RGB signals it is possible todetermine whether or not grayscale saturation and color saturation, forexample, will ultimately occur in the image when displayed by a displaydevice or the like. That is, since the signals that are ultimatelydisplayed on a display device or the like are RGB signals, by obtainingRGB signals in advance and determining whether or not grayscalesaturation and color saturation, for example, will occur in the RGBsignals, it is possible to reliably know in advance the state of theimage that will ultimately be displayed on the display device or thelike. Thus, the procedure of obtaining RGB signals in advance from theYin signal, the CBin signal, and the CRin signal, and determining thelimit value L for limiting the GAIN value based on the RGB signals thathave been obtained, is effective.

The operation of the limit value determination portion 4 is describednext using FIG. 6 and FIG. 7. It is possible for the limit valuedetermination portion 4 to input the limit values L1 to L6 and performcomputations to determine a limit value L that corresponds to the imagetype of the image signal, the characteristics of the image, and theself-diagnosis by the integrated circuit.

In FIG. 6, an M register 23 chooses the operation mode of the limitvalue determination portion 4. For example, when the value 2 is set inthe M register 23 as shown in Table 24 of FIG. 7, the limit valuedetermination portion 4 inputs the value of the limit value L2 that hasbeen set to the register 20. Thus, the limit value L is set to the fixedlimit value L2. When an unsatisfactory abnormality is observed in thevisually processed image, the visual processing device 1 masks theinternal signals L1 and L3 to L6 of the integrated circuit to set thelimit value L2 from the outside so as to perform a self-diagnosis suchas evaluating the impact of the limit value. It is also possible toforcibly set the limit value L to the limit value L2 by masking theinternal signals L1 and L3 to L6, and thus it can be used as a testsignal for confirming the signals in the integrated circuit.

If the M register 23 is set to the value 1, then the limit valuedetermination portion 4 inputs the limit value L1 and outputs L1 as thelimit value L. Similarly, if the M register 23 is set to the value 3,then the limit value determination portion 4 inputs the limit value L3and outputs L3 as the limit value L. If the M register 23 is set to thevalue 7, then the limit value determination portion 4 inputs the limitvalues L1 and L3 and performs a computation using L1 and L3 and outputsthe limit value L. This computation can be a computation for calculatingthe minimum value MIN (L1,L3), or can be a computation for calculatingthe average value Ave (L1,L3).

Thus, the limit value determination portion 4, depending on the valuethat has been set to the M register 23, selects and outputs a signalthat has been input from the outside, or perform a computation and thenoutputs a limit value L. The limit values L3 to L6 that are input fromthe outside are described in detail later.

It should be noted that if the limit value determination portion 4selects and outputs a signal that has been input from the outside, thenthe limit value that has been input can be used as it is as the limitvalue L, and the limit value determination portion 4 can be obviated.

Next, the gain limit portion 5 limits the first gain signal GAIN withthe limit value L, and outputs a second gain signal GAIN2.

Specifically, as shown in FIG. 8, if the first gain signal GAIN exceedsthe various limit values L shown by the dashed lines, then the gainoutput is kept at or below all of the limit values. For example, whenthe limit value L=1.2, then the output in the case of the luminancesignal Ys and an unsharp signal US of US0 is limited at L=1.2 andoutput. Due to this limit, the output signal Yout for the luminancesignal Ys is limited from Yg1 to Yg2 as shown in FIG. 9. That is, theoutput is limited to equal or less than the slopes of the limit valuesL.

Next, the correction portion 9 corrects the image signal according tothe second gain signal GAIN2. The correction portion 9 is made of amultiplication portion 6, a multiplication portion 7, and amultiplication portion 8.

The multiplication portion 6 multiplies the second gain signal GAIN2 andthe luminance signal Yin, and outputs a luminance signal Yout. Themultiplication portion 7 and the multiplication portion 8 multiply thesecond gain signal GAIN2 with the color signals CRin and CBin,respectively, and output color signals CRout and CBout.

It should be noted that the Yout signal, the CRout signal, and the CBoutsignal are each obtained through multiplication with the same gainvalue, that is, GAIN2, by one of the multiplication portions(multiplication portions 6 to 8) and are output from the correctionportion 9, and thus discrepancies in the output timing of the Youtsignal, the CBout signal, and the CRout signal do not occur.Consequently, it is not necessary to provide separate delay means or thelike for synchronizing the output timing of the Yout signal, the CBoutsignal, and the CRout signal.

The correction portion 9 corrects the image signal in this fashion.Consequently, in brightness adjustment, the correction portion 9 alsoincreases the color signals in the areas in which it increases theluminance level, and thus the color does not appear light in theseareas. Conversely, it also reduces the color signal in the areas inwhich it reduces the luminance level, thus the color does not appeardark in these areas. It is also possible to inhibit color saturation inareas where the luminance level has been increased by correcting theinput image signal according to the second gain signal GAIN2.

It should be noted that it is also possible for the visual processingportion 3 of the visual processing device 1 (FIG. 1) to receive only theluminance signal Yin as input, and to output a gain signal that isequivalent to an output obtained by performing gamma conversion of theluminance signal Yin. With this configuration, the visual processingportion 3 can be constituted by a LUT storing data havingone-dimensional gain characteristics. More specifically, the data storedin the LUT can be obtained by selecting a conversion curve having anyone of the gain characteristics US0 to USn in FIG. 3, or the data can becreated through a one-dimensional gain function that has been set inadvance. It is also possible to create the data to be stored in the LUTthrough a gain function that yields an output that is equivalent to thegrayscale conversion curve that is obtained from the histogramdistribution of the luminance signal in the image.

Thus, since the visual processing portion 3 stores data based on thegain characteristics, the memory capacity can be made smaller than ifthe gamma correction values are stored as they are as tabulated data.

It is also possible for the image signals that are input and output tobe RGB signals, that is, primary color signals. FIG. 10 shows a blockdiagram of a visual processing device 80 according to a first modifiedexample. To avoid repetition, the discussion of procedures that areidentical to those of the visual processing device 1 has been omitted.The visual processing device 80 inputs an RGB signal as the imagesignal, and outputs an RGB signal that has been corrected through visualprocessing.

The luminance and color conversion portion 85 converts the image signalsRin, Gin, and Bin that have been input into a luminance signal Yin andcolor signals CRin and CBin. Here, as for extracting the luminancecomponent information, it is created from the Rin, Gin, and Bin to matchhuman vision characteristics. The following is an example of theluminance signal Yin.Yin=0.3×Rin+0.59×Gin+0.11×Bin

The color signals (CRin, CBin) are as follows.CRin=(−0.1687)×Rin+(−0.3313)×Gin+0.5×BinCBin=0.5×Rin+(−0.4187)×Gin+(−0.0813)×Bin

The color saturation detection portion 10 (FIG. 1) calculates thecorrection value K1 from the converted luminance signal Yin, the colorsignal CRin, and the color signal CBin. It should be noted that althoughthe RGB conversion portion 11 (FIG. 4) of the color saturation detectionportion 10 creates an RGB signal from the luminance signal Yin, thecolor signal CRin, and the color signal CBin, it is also possible todirectly use the image signals Rin, Gin, and Bin that have been input.In a case where the image signals Rin, Gin, and Bin that are input areused directly, the RGB conversion portion 11 can be omitted.

The limit value determination portion 4 (FIG. 6) determines the limitvalue L by referencing the limit value L1. The limit value determinationportion 4 selects the signal that has been input from the outside andoutputs this as the limit value L, or performs a computation and thenoutputs the limit value L, according to the value that has been set inthe M register 23.

The visual processing portion 3 receives the output of the spatialprocessing portion 2 and the luminance signal Yin as input, andcalculates the first gain signal GAIN.

The gain limit portion 5 outputs a second gain signal GAIN2 that isobtained by correcting the first gain signal GAIN that has been inputwith the limit value L.

A correction portion 81 is made of multiplication portions 82, 83, and84. The multiplication portions 82, 83, and 84 multiply the second gainsignal GAIN2 and the image signals Rin, Gin, and Bin, respectively, andoutput visually corrected RGB signals Rout, Gout, and Bout.

Thus, with the visual processing device 80, it is possible to adjust thebrightness, such as the contrast, while retaining the ratio of Rin, Gin,and Bin. Further, with the visual processing device 80, the gain signalcan be limited by the limit value L, and thus it is possible to inhibitsaturation of the gradation of the grayscale and color saturation evenwhen the brightness, such as the contrast, is adjusted.

It is also possible for the output of the visual processing portion 3(FIG. 1) to be changed to a difference signal of the difference with theluminance signal Yin. A visual processing device 60 according to asecond modified example is described using FIG. 11 and FIG. 12.

FIG. 11 is a block diagram of the visual processing device 60 of thesecond modified example.

A visual processing portion 63 is designed such that it outputs thedifference between the output signal resulting from the grayscaleconversion shown in FIG. 2 and the luminance signal Yin as a differencesignal DIFF. The difference signal DIFF is the difference between theoutput signal resulting from the grayscale conversion shown in FIG. 2and the luminance signal Yin, and as shown in FIG. 12, is determinedbased on the unsharp signal USn and the luminance signal Yin. Thus, thesignal that is obtained by an addition portion 62 adding the differencesignal DIFF and the luminance signal Yin is the same as the outputsignal resulting from the grayscale conversion shown in FIG. 2.

The addition portion 62 calculates an addition value Yx by taking thesum of the difference signal DIFF and the luminance signal Yin. Theaddition value Yx is a signal that is equivalent to the output signalafter the grayscale conversion of FIG. 2.

A division portion 61 calculates the first gain signal GAIN by dividingthe addition value Yx by the value of the luminance signal Yin. That is,the first gain signal GAIN is obtained as follows.GAIN=Yx/Yin

The first gain signal GAIN is equivalent to adopting the slope of thegrayscale conversion curve of FIG. 2 as the gain.

The color saturation detection portion 10 (FIG. 1) calculates the limitvalue L1 from the converted luminance signal Yin, the color signal CRin,and the color signal CBin.

The limit value determination portion 4 (FIG. 6) determines the limitvalue L in reference to the limit value L1. The limit valuedetermination portion 4 selects the signal that has been input from theoutside and outputs this as the limit value L, or performs a computationand outputs the limit value L, according to the value that has been setin the M register 23.

The gain limit portion 5 outputs a second gain signal GAIN2 that isobtained by correcting the first gain signal GAIN that has been inputwith the limit value L.

The multiplication portion 6, the multiplication portion 7, and themultiplication portion 8 of the correction portion 9 multiply the secondgain signal GAIN2 and the luminance signal Yin, the color signal CRin,and the color signal CBin, respectively, and output the luminance signalYout, the color signal CRout, and the color signal CBout.

It should be noted that the visual processing portion 63 can beconstituted by a two-dimensional LUT or can be constituted by aone-dimensional LUT storing a function of the luminance signal Yin andthe difference signal DIFF.

By storing the difference between the output of the grayscale conversioncurve and the luminance signal Yin in the LUT, the memory capacity canbe reduced more than if gamma correction values are stored.

Thus, with the first embodiment of the invention, it is possible toachieve a visual processing device 1 that can execute precise contrastadjustment with respect to image signals that have been input and thatdoes not lead to discrepancies in the output timing of the image signalsthat are output. Further, since it is possible to limit the first gainGAIN by a predetermined limit value that has been set, the brightnesscan be adjusted while suppressing color saturation. In particular, thegain signal can be limited at colors having high vividness, and thisallows color saturation at dark red and dark blue to be prevented.

Since the maximum value detection portion detects the maximum value whenthe image signal is converted to RGB signals, and the first gain signalis limited based on the maximum value of the RGB signal that isdetected, it is possible to detect the level of the gain signal thatleads to color saturation, and a limit value that does not result incolor saturation can be calculated.

By using the unsharp signal US, which is information on the shading of alocal area, the visual processing portion 3 can correct the image signalwith gain characteristics that are different for the dark regions andthe light regions in the image, and thus the contrast of both can beadjusted ideally, even if dark areas in the image are made brighter,without saturating the bright area regions in the background of theimage signal, and by doing so, color saturation is suppressed. Thus, itis possible to perform contrast adjustment in such a manner that darkareas in an image of a backlit scene, and in particular skin-colorregions such as a person's face, can be adjusted to an appropriatebrightness and the image signals of the background region are notsaturated.

The visual processing portion 3 was made to perform an output that isbased on the gain characteristics. The gain characteristics change moresmoothly with respect to the image signal than do the grayscaleconversion characteristics, and thus sufficient processing precision canbe ensured even if the image signal and the processed signal aredecimated roughly, and the bit precision of the signal can be lowered.Thus, the circuit scale of the hardware of the visual processing portion3 can be reduced, and in a configuration where this is a lookup table,the memory capacity can be reduced.

Having a LUT serve as the visual processing portion 3 allows differentvisual characteristics to be achieved by rewriting the data that arestored in the LUT. It is also possible to achieve complex, non-lineargain characteristics with ease.

In addition, since the effects of the contrast can be weakened by thelimit value L, it is not necessary to recreate gain characteristic datathat correspond to the strength of an effect. It therefore is notnecessary to provide the LUT with data for various strengths, and thisallows the capacity of the memory to be reduced. Further, since it isnot necessary to replace the contents of the LUT, the limit value L canbe changed in real-time and the strength of the effect can be changedfor each region of the image. Specifically, the limit value L can bechanged per frame or per pixel.

SECOND EMBODIMENT

A display device according to a second embodiment of the invention isdescribed next using FIGS. 13 to 17. Components that are the same as inthe first embodiment have been assigned the same reference numerals andare not described in detail.

In this second embodiment of the invention, an example of determiningthe limit value of the first gain signal GAIN of the visual processingdevice 1 is described using FIG. 13. FIG. 13 is a block diagram showingthe configuration of a display device 30 according to a secondembodiment of the invention.

In FIG. 13, the display device 30 is provided with a tuner 31 forreceiving program information, a program information separating portion32 for separating the program information, an AV decoding portion 33 fordecoding video data and audio data, the visual processing device 1 forvisually processing the video data, and an output portion 35 fordisplaying the processed image.

The display device 30 can also be furnished with some or all of a signallevel detection portion 34 for detecting the mean signal level of thevideo signal, a skin color detection portion 36 for detecting skin colorregions, a broadcast content detection portion 37 for detecting genreinformation and program description information, and an electric fieldstrength detection portion 38 for detecting the strength of the electricfield of the received electromagnetic wave.

The tuner 31 selects the electromagnetic wave of a target broadcastingstation from the received electromagnetic waves that have been receivedby the antenna, and modulates this to restore a single transport stream(hereinafter, referred to as “TS”).

The program information separating portion 32 descrambles the TS andseparates the video data, the audio data, the various data for digitalbroadcast, and the data for the EPG display, for example, by programcontent.

The AV decoding portion 33 decodes the video data and the audio datathat have been separated by the program information separating portion32 into a video signal and an audio signal. The video signal is forexample composed of a luminance signal and color signals such as inYCbCr.

The visual processing device 1 visually processes the video signal thathas been input and outputs the result to the output portion 35. Theoutput portion 35 is for example provided with a display portion such asa CRT, a plasma display panel, or a liquid crystal panel, and a soundoutput portion such as a speaker, and outputs the audio signal that hasbeen input and displays the visually processed video signal. It shouldbe noted that it is also possible for the output portion 35 to convertand then display the input signal to match the display colors of thedisplay. For example, it can convert a luminance and color signals intoRGB signals, which are primary color signals, and then display thesesignals.

It should be noted that modified examples of the visual processingdevice 1 are conceivable depending on the structure of the signal thatis handled by the output portion 35. For example, if the output portion35 handles luminance signals and color signals, then the visualprocessing device 1 (FIG. 1) is preferable, whereas if it handles RGBsignals, then the visual processing device 80 (FIG. 10) is preferable.In this way, a configuration that is suited for the video signal can beused.

The method of determining the limit value for the first gain signal GAINof the visual processing device 1 is described next using FIGS. 13 to17.

The signal level detection portion 34 shown in FIG. 13 stores the videosignal in a frame memory and computes the mean value of the videosignals per frame or per field to detect the mean signal level. Thesignal level detection portion 34 then calculates the limit value L3according to the mean signal level that has been detected. For example,an image in which the mean signal level is higher than a predeterminedvalue PH is defined as a “bright image,” and in a bright image the limitvalue L3 is set to 1.0, whereas an image in which the mean signal levelis lower than a predetermined value PL is defined as a “dark image,” andin a dark image the limit value L3 is set to 2.0. Thus, the limit valuecan be set based on the characteristics of the image. The mean signallevel can be a mean value that is obtained by averaging the luminancesignals, or it is also possible to use a value that is obtained byaveraging the signals of the RGB signal. The mean signal level also canbe a value that is obtained by further averaging the three averagevalues of the RGB signals.

Thus, limiting the gain signal in bright images to suppress the signallevel increases the heat resistance and curbs power consumption in thedisplay device, which for example may be a plasma display panel.

To raise the heat resistance and lower power consumption in the plasmadisplay panel, the drive portion is provided with a display controlfunction of performing a control on the display panel side to lower theoverall brightness of the screen when the average luminance level of theimage to be displayed exceeds a predetermined level. This displaycontrol function operates independent of the video signal processing.

Thus, raising up regions of a predetermined brightness in the imagethrough visual processing activates the display control function and thedrive portion lowers the overall brightness of the screen, darkeningeven those regions that were sufficiently bright before visualprocessing, and resulting in an image that overall is unsharp and hasworse picture quality. In other words, there is a risk that the effectsdue to the visual processing that has been performed will be nullified.For this reason, in the visual processing device 1, the gain signal iskept below the mean signal level that activates the display controlfunction of the drive portion, and thus contrast adjustment that iseffective is possible.

The skin color detection portion 36 is described next using FIGS. 14 to16.

The skin color detection portion 36 detects skin color regions from theluminance signal Yin, the color signal CBin, and the color signal CRin,and calculates a limit value L4. As shown in FIG. 14, the skin colordetection portion 36 is provided with a first color region detectionportion 361 that detects a predetermined first color region from thecolor signal CRin and outputs a weight value Ka, a second color regiondetection region 362 that detects a predetermined second color regionfrom the color signal CBin and outputs a weight value Kb, and aluminance region detection portion 363 that detects a predeterminedbrightness region from the luminance signal Yin and outputs a weightvalue Kc, and the skin color detection portion 36 obtains the limitvalue L4 by defining the degree of likeness to skin as the product ofthe various weight values. For example, the limit value L4 is calculatedby multiplication portions 364 and 365 as limit value L4=Ka×Kb×Kc.

As shown in FIG. 15, here the skin color region is a region having apredetermined range in the color signals that has been defined inadvance. The skin color detection portion 36 detects whether the videosignal to be detected (luminance signal Yin, color signal CBin, andcolor signal CRin) falls within the skin color region. For example, theregion enclosed by CB1 to CB2 of the color signal CBin and CR1 to CR2 ofthe color signal CRin is defined as the skin color region. The range ofthe image signal that belongs to the range of Yq to Yp of the luminanceis regarded as the skin color region. Thus, it is possible to set thelimit value L according to the brightness of the image, in addition tothe color. In particular, one effect is that it is possible performlimit so as to inhibit face shininess, grayscale saturation, and colorsaturation in the skin color region of the face of people who arebright.

The operation of the skin color detection portion 36 is described indetail using FIG. 16.

The first color region detection portion 361 inputs the color signalCRin and outputs a weight value Ka according to the weight functionshown in FIG. 16A. Similarly, the second color region detection region362 inputs the color signal CBin and outputs a weight value Kb accordingto the weight function shown in FIG. 16B. The luminance region detectionportion 363 inputs the luminance signal Yin and outputs a weight valueKc according to the weight function shown in FIG. 16C. The degree oflikeness to skin is defined as the product of the various weightfunctions, and is calculated as limit value L4=Ka×Kb×Kc. The weight atthe boundary of the target skin color region is changed gradually sothat the color near the boundary between the skin color region and theoutside does not become unnatural. It should be noted that the weightfunction can have the shape of a trapezoid or a triangle. Imageevaluation, for example, can be employed to set the ideal function. Itshould be noted that it is also possible for the limit value L4 to bethe smallest of value among Ka, Kb, and Kc, or it can be the average ofthe three. Image evaluation, for example, can be employed to set theideal function.

The limit value L can be suppressed in skin color regions by loweringthe weight coefficients in the skin color region, such as setting theminimum value to 1.0. The skin color of people's faces in bright imagesis therefore prevented from shining even if contrast adjustment isperformed, and it is possible that the gradation of their faces is notsaturated. It should be noted that the minimum values of the weightcoefficients and the shapes of the weight functions can be differentfrom one another.

The broadcast content detection portion 37 is described next using FIG.17.

The broadcast content detection portion 37 detects EPG display data thathave been separated from the program information separating portion 32,and the genre information and the program description information of thedata that are currently being received, and calculates the limit valueL5. It should be noted that the genre information of the data and theimage information also may be detected from MPEG stream information.

The broadcast content detection portion 37 detects the type of contentthat has been received, such as “News,” “Sports,” “Tabloid Show,”Movie,” and “Drama” as shown in FIG. 17, and calculates a limit value L5for each of these. The limit value that is set depends on the contenttype, and for example, a limit value of 3.0 is set for news, a limitvalue of 2.0 is set for sports, a limit value of 1.5 is set for atabloid show, a limit value of 1.1 is set for a movie, and a limit valueof 1.4 is set for a drama. The limit value is set high for news andsports in order to sharpen the picture, an approximately normal limitvalue is set for tabloid shows because many are recorded in studios andthe video has also been adjusted, and for movies, the limit value iskept low in order to reproduce thick images. By setting the limit valueto match the content in this way, it is possible to set the most ideallimit value for the video. The limit values L5 also may be tabulated inadvance. In this way, it is possible to set the most ideal limit valueL5 for the image type. It should be noted that it may also be possiblefor this table to be changed from the outside.

The electric field strength detection portion 38 is described next.

The electric field strength detection portion 38 detects the strength ofthe electric field of the received electromagnetic wave that is receivedby the tuner 31, and calculates a limit value L6 according to thestrength of the electric field. For example, if the electric fieldstrength is “strong,” then the limit value L6 can be set to 3.0, whereasif the electric field strength is “weak,” then the limit value L6 can beset to 1.0.

Thus, the limit value L6 can be set so that noise in images with a weakelectric field and a poor S/N ratio is not enhanced.

As described above, according to the second embodiment of the invention,the signal level detection portion 34 can calculate the limit value L3in accordance with the mean signal level that is detected from the imagesignals in a single frame or a single field, and the visual processingdevice 1 can limit the first gain signal GAIN according to the limitvalue L3.

Thus, the limit value can be set according to the mean signal level thatis detected from the image signal, and in bright images the gain signalcan be limited to suppress the signal level. By suppressing the signallevel, the heat resistance can be increased and power consumption can becurbed in the display device, such as a plasma display panel. Inaddition, by keeping the gain signal below the level at which thefunction corresponding to the APL (Average Picture Level) that has beenset for the display panel is activated, it is possible to achievecontrast adjustment that is effective.

The skin color detection portion 36 calculates the limit value L4 inaccordance with the degree of likeness to skin color by performingcomputations with the weight coefficients Ka and Kb corresponding to thecolor signals, and the weight coefficient Kc corresponding to theluminance signal, which are set in advance. The visual processing device1 can limit the first gain signal GAIN according to the limit value L4.

Thus, since the limit value can be set after detecting the skin color,it is possible to lower the limit value in the skin color regions ofbright images, suppress color saturation, and also prevent face shine.It is also possible that the gradation of faces in bright settings isnot saturated.

The broadcast content detection portion 37 calculates the limit value L5according to the broadcast content that has been detected from theprogram information separating portion 32, which separates programinformation from the data that have been received. The visual processingdevice 1 can limit the first gain signal GAIN according to the limitvalue L5.

Thus, an optimal correction value can be set for each content type, andit is possible to set correction values that match the contrastadjustment values necessary for the content.

The electric field strength detection portion 38 calculates the limitvalue L6 according to the value of the electric field strength when thetuner 31 receives image data. The visual processing device 1 can limitthe first gain signal GAIN according to the limit value L6.

Thus, the limit value can be set based on the value of the electricfield strength, it is possible to detect images whose electric strengthis weak and whose received data have a poor S/N ratio and then limit thegain signal for the entire image, and it is possible to suppress theenhancement of noise in images with a poor S/N ratio.

The display device 30 of the invention is provided with the tuner 31 forreceiving image data that have been transmitted or broadcast, the AVdecoding portion 33 for decoding the image data to video signals, thevisual processing device 1 for visually processing the decoded videosignals and outputting the result, and the output portion 35 fordisplaying the visually processed video signals.

With this configuration, it is possible to achieve a display device 30with which visual processing through contrast adjustment of the image inwhich color saturation is inhibited is possible. Further, by suppressingthe gain signal, it is possible to keep down the signal level in brightimages and increase the heat resistance and curb power consumption inthe display portion, such as a plasma display panel. Additionally, bykeeping the gain signal below the mean signal level at which the displaycontrol function of the display panel is activated, it is possible toachieve contrast adjustment that has a high effect.

The following description is of a modified example of the gain-typevisual processing portion 70 of the first embodiment of the inventionand the gain-type visual processing portion 70 of the second embodimentof the invention.

THIRD EMBODIMENT

As a third embodiment of the invention, a method of suppressing a dropin the contrast of the output signal Yout in a case where the spatialfrequency band of the gain signal GAIN that is output from the gain-typevisual processing portion 70 is limited and the value (signal level) ofthe luminance signal Yin that has been input is changed by a value(signal level) that is significantly larger than the value (signallevel) of the unsharp signal US is described using FIGS. 18 to 20.

FIG. 18 is a block diagram showing the configuration of a gain-typevisual processing portion 71, FIG. 19A is an explanatory diagramdescribing the range over which the gain-type visual processing portion71 extracts the brightness information around the pixel in question,FIG. 19B is a diagram showing an example of the signal waveform of theYin signal, the US signal, and the USH signal in the gain-type visualprocessing portion 71, FIG. 20A is an explanatory diagram describing thegrayscale conversion characteristics when the gain signal GAIN is notband limited, and FIG. 20B is an explanatory diagram describing thegrayscale conversion characteristics when the gain signal GAIN has beenband limited. Hereinafter, components that are the same as in the firstembodiment and the second embodiment have been assigned the samereference numerals as before and are not described in detail.

In FIG. 18 the gain-type visual processing portion 71 is provided with aband limit portion 90 for limiting the band of the spatial frequency ofthe gain signal GAIN that can respond to the luminance signal Yin, andthe gain-type visual processing portion 70 for outputting a gain signalGAIN for amplifying the luminance signal Yin from a band limited signalUSH whose band has been limited. Here, in the gain-type visualprocessing portion 70, the spatial processing portion 2 creates anunsharp signal US from the band limited signal USH and the visualprocessing portion 3 creates the gain signal GAIN based on the bandlimited signal USH and the unsharp signal US.

The gain signal GAIN that has been band limited and the luminance signalYin that has been input are multiplied by the multiplication portion 6,yielding a luminance signal Yout whose gradation has been converted.

Thus, by performing grayscale conversion by multiplying the luminancesignal Yin and the gain signal GAIN whose spatial frequency band thatcan respond to the luminance signal Yin has been limited, a drop in thecontrast of the output signal Yout is suppressed even if the value ofthe luminance signal Yin that has been input is significantly largerthan the unsharp signal US. This drop in contrast is discussed ingreater detail later.

As shown in FIG. 19A, the band limit portion 90 calculates the averagevalue of the pixels in a target region 201 proximate to the pixel inquestion 200, for example, to create a band limited signal USH (forexample, this corresponds to the signal waveform W3 in FIG. 19B) whosespatial frequency band that can respond to the luminance signal Yin thathas been input (for example, this corresponds to the signal waveform W1in FIG. 19B) has been limited.

As illustrated in FIG. 19A, the spatial processing portion 2 extractsthe values of the pixels from a wider target region 202 than the targetregion 201 of the band limited signal USH, and creates an unsharp signalUS (for example, this corresponds to the signal waveform W2 in FIG. 19B)as the brightness information in the region surrounding the pixel inquestion 200. For example, it is preferable that the target region 202is 10 to 100 times as large as the target region 201. Thus, the band ofthe spatial frequency of the unsharp signal US will be limited to a bandthat is significantly lower than the band of the spatial frequency ofthe band limited signal USH.

A method for suppressing a drop in the contrast in the output signalYout in a case where the value of the luminance signal Yin that has beeninput is significantly larger than the unsharp signal US is described indetail below.

First, a case in which the output signal Yout experiences a drop incontrast is described using FIG. 20A. FIG. 20A is an explanatory diagramfor describing the grayscale conversion characteristics when the gainsignal GAIN is not band limited. The horizontal axis in FIG. 20A is theluminance signal Yin that has been input, and the vertical axis is thegradation converted output signal Yout.

In FIG. 20A, “USa” is the value of the unsharp signal US, which is thebrightness information extracted from the wide target region 202 that isused for visually processing the area surrounding the pixel in question200. “USb” is the value of the brightness information that has beenextracted from the target region 201 near the pixel in question 200 thatis input at this time. The value Yin of the pixel in question 200 thathas been input is closer to USb, which is the near value, than USa,which is the value of a normally wide region.

In the visual processing portion 3, the gradation curve 400 in FIG. 20Aillustrates the output characteristics in a case where the value of theluminance signal Yin of the pixel in question 200 and the value of theunsharp signal US match, and is a curve that is determined by thegradation curve that has been selected based on the brightnessinformation extracted from the target region 202 around the pixel inquestion 200. The change in the overall screen brightness is determinedfrom the gradation curve 400.

The visual processing portion 3 selects the gradation curve representedby a gradation curve 205 when the value of the unsharp signal US is USa,selects a curve 203 or a curve 204 when the unsharp signal US is lessthan USa (the region around the pixel in question 200 is darker thanUSa), and selects a curve 206 or a curve 207 when the unsharp signal USis greater than USa (the region around the pixel in question 200 isbrighter than USa).

In this way, the visual processing portion 3 selects the gradation curvethat is represented by the gradation curve 205 when the value of theunsharp signal US is USa, and unless there is a change in the unsharpsignal US, the output signal Yout corresponding to the value of theluminance signal Yin of the pixel in question 200 is output inaccordance with the gradation curve 205. Thus, the visual processingportion 3 maintains the contrast of the output signal Yout when thevalue of the luminance signal Yin of the pixel in question 200 is nearUSa because grayscale conversion is performed with a gain correspondingto the slope in the straight line section 300 of the gradation curve205. With a configuration in which the band limit portion 90 has notbeen provided, however, when the brightness near the pixel in question200 is USb and the luminance signal Yin takes a value that also is nearUSb, that is, when the luminance signal Yin is significantly away fromthe value of the unsharp signal US, the slope of the gradation curve 205flattens out and the visual processing portion 3 outputs a gain signalGAIN that corresponds to the slope in the region 301. Thus, the visualprocessing device 1 performs grayscale conversion with this gain signalGAIN, and a drop in the contrast of the output signal Yout occurs as aresult.

A method for suppressing a drop in the contrast of the output signalYout is described using FIG. 20B. FIG. 20B is an explanatory diagram fordescribing the grayscale conversion characteristics of the visualprocessing device 1 when the gain signal GAIN has been band limited. Thehorizontal axis in FIG. 20B is the luminance signal Yin that has beeninput, and the vertical axis is the gradation converted output signalYout.

In FIG. 20B, USa is the value of the unsharp signal US, which is thebrightness information extracted from the target region 202 surroundingthe pixel in question 200. The brightness near the pixel in question 200is USb at this time, and the luminance value Yin also takes on a valuenear USb.

The visual processing portion 3 selects the gradation curve that isrepresented by the gradation curve 205 when the value of the unsharpsignal US is USa, and unless there is a change in the unsharp signal US,the visual processing portion 3 determines the output signal Youtcorresponding to the value of the band limited signal USH in which theband of the spatial frequency of the luminance signal Yin has beenlimited, and outputs this according to the gradation curve 205.

At this time, the band limited signal USH is the brightness USb near thepixel in question 200.

Thus, with the visual processing portion 3, even if the luminance signalYin of the pixel in question 200 changes in a range around USb, which issignificantly higher than the value of the unsharp signal US, the gainsignal GAIN that is output by the visual processing portion 3 does notchange because in that narrow region the value of the band limitedsignal USH is fixed at USb due to band limit. In other words, in thenarrow region near the pixel in question 200, a substantially constantvalue (the slope of the line 209) is output as the gain signal GAIN. Inthis way, by multiplying the band-limited gain signal GAIN and theluminance signal Yin to perform grayscale conversion, it is possible tomaintain the contrast of the output signal Yout. That is, in this case,the gain signal GAIN is a substantially constant value and thus theoutput signal Yout that is output is substantially proportional to thechange in the signal level of the input luminance signal Yin. Thecontrast of the input luminance signal Yin is therefore maintained inthe output signal Yout. It should be noted that the slope of the line209 is closest to the slope of the straight line section 300 of thecurve 205 in FIG. 20A, but the line 208 is closest when the band limitedsignal USH is less than USb, and the line 210 is closest when the bandlimited signal USH is greater than USb.

Thus, according to the third embodiment of the invention, grayscaleconversion is performed by multiplying the luminance signal Yin and thegain signal GAIN in which the base of the spatial frequency that canrespond to the luminance signal Yin has been limited, and thus a drop inthe contrast of the output signal Yout can be suppressed, even if thevalue (signal level) of the luminance signal Yin that has been input ischanged by a value (signal level) that is significantly larger than thevalue (signal level) of the unsharp signal US.

It should be noted that the manner in which the gain signal GAIN whosespatial frequency band that can respond to the luminance signal Yin hasbeen limited is created is not limited to the configuration of thegain-type visual processing portion 71.

Another modified example of the configuration of the gain-type visualprocessing portion 71 is described below.

First, a modified example of the gain-type visual processing portion 71is described as a third modified example using FIG. 21. FIG. 21 is ablock diagram showing the configuration of a gain-type visual processingportion 72 serving as a third modified example.

In FIG. 21, the gain-type visual processing portion 72 is provided witha band limit portion 90 for outputting a band limited signal USH whoseband that can respond to the luminance signal Yin has been limited, aspatial processing portion 2 for creating an unsharp signal US from theluminance signal Yin, and a visual processing portion 3 for creating again signal GAIN based on the band limited signal USH and the unsharpsignal US.

The multiplication portion 6 multiplies the luminance signal Yin and theband-limited gain signal GAIN to yield a gradation-converted outputsignal Yout.

With this configuration as well, it is possible to create a gain signalGAIN whose spatial frequency band that can respond to the luminancesignal Yin has been limited, and like the gain-type visual processingportion 71, a drop in the contrast of the output signal Yout can besuppressed even if the value (signal level) of the luminance signal Yinthat has been input is changed by a value (signal level) that issignificantly larger than the value (signal level) of the unsharp signalUS.

Next, a modified example of the gain-type visual processing portion 71is described as a fourth modified example using FIG. 22. FIG. 22 is ablock diagram showing the configuration of a gain-type visual processingportion 73 serving as a fourth modified example.

In FIG. 22, the gain-type visual processing portion 73 is provided witha gain-type visual processing portion 70 that inputs the luminancesignal Yin and outputs a gain signal GAIN for amplifying the luminancesignal Yin, and a band limit portion 98 for limiting the band of thespatial frequency of the gain signal GAIN that is output from thegain-type visual processing portion 70. Here, in the gain-type visualprocessing portion 70, the spatial processing portion 2 creates anunsharp signal US from the luminance signal US, and the visualprocessing portion 3 creates a gain signal GAIN based on the luminancesignal Yin and the unsharp signal US.

The band limit portion 98 executes band limit on the gain signal GAINthat is output from the gain-type visual processing portion 70.

The multiplication portion 6 multiplies the luminance signal Yin and theband-limited gain signal GAIN to yield a gradation-converted outputsignal Yout.

With this configuration as well, it is possible to create a gain signalGAIN whose spatial frequency band that can respond to the luminancesignal Yin has been limited, and like the gain-type visual processingportion 71, a drop in the contrast of the output signal Yout can besuppressed even if the value (signal level) of the luminance signal Yinthat has been input is changed by a value (signal level) that issignificantly larger than the value (signal level) of the unsharp signalUS.

It should be noted that the gain-type visual processing portion 71 canbe substituted for the gain-type visual processing portion 70 of thefirst embodiment or the second embodiment.

It is also possible to substitute the gain-type visual processingportion 72 for the gain-type visual processing portion 70 of the firstembodiment or the second embodiment.

It is also possible to substitute the gain-type visual processingportion 73 for the gain-type visual processing portion 70 of the firstembodiment or the second embodiment.

FOURTH EMBODIMENT

Next, a configuration further provided with a contrast enhancementportion is described as a fourth embodiment of the invention using FIGS.23 to 25.

FIG. 23 is an explanatory diagram for describing an example of theconfiguration when a contrast enhancement portion has been provided,FIG. 24 is an explanatory diagram describing the grayscale conversioncharacteristics, and FIG. 25 is an explanatory diagram for describingthe characteristics of the contrast enhancement portion. Hereinafter,components that are the same as in the first through third embodimentshave been assigned the same reference numerals as before and are notdescribed in detail.

In FIG. 23, the visual processing portion 1 is further provided with acontrast enhancement portion 91 for outputting an enhanced signal Yethat is obtained by enhancing the luminance signal Yin.

This fourth embodiment describes a configuration in which the gain-typevisual processing portion 70 of the first embodiment has been replacedby the gain-type visual processing portion 71.

In the gain-type visual processing portion 71, the gain-type visualprocessing portion 70 outputs a gain signal GAIN for amplifying theluminance signal Yin according to the band limited signal USH, whoseband has been limited by the band limit portion 90. Here, in thegain-type visual processing portion 70, the spatial processing portion 2creates an unsharp signal US from the band limited signal USH and thevisual processing portion 3 creates the gain signal GAIN based on theband limited signal USH and the unsharp signal US.

The contrast enhancement portion 91 outputs an enhanced signal Ye thatis obtained by enhancing the luminance signal Yin.

The multiplication portion 6 multiplies the gain signal GAIN and theenhanced signal Ye to yield an output signal Yout in which the contrasthas been enhanced.

Thus, providing the contrast enhancement portion 91 allows the contrastof the luminance signal Yin to be enhanced, and allows a drop in thecontrast of the output signal Yout to be suppressed even if the value ofthe luminance signal Yin that has been input is significantly brighterthan the unsharp signal US. The contrast enhancement portion 91 will bediscussed later.

First, a case in which the output signal Yout experiences a drop incontrast is described using FIG. 24. FIG. 24 is an explanatory diagramfor describing the grayscale conversion characteristics when contrastconversion is performed by the visual processing device 1. Thehorizontal axis in FIG. 24 is the luminance signal Yin that has beeninput, and the vertical axis is the gradation-converted output signalYout.

In FIG. 24, “USa” is the value of the unsharp signal US, which is thebrightness information extracted from the target region 202 around thepixel in question 200. “USb” is the value of the brightness informationnear the pixel in question 200 that have been input at this time, andthe luminance signal Yin also takes on a value near USb.

In the visual processing portion 3, the gradation curve 500 in FIG. 24illustrates the output characteristics in a case where the value of theluminance signal Yin of the pixel in question 200 and the value of theunsharp signal US match, and is a curve that is determined by thegradation curve that has been selected based on the brightnessinformation extracted from the target region 202 around the pixel inquestion 200. The change in the overall screen brightness is determinedfrom the gradation curve 500.

The visual processing portion 3 selects the gradation curve representedby a gradation curve 603 when the value of the unsharp signal US is USa,selects a curve 601 or a curve 602 when the unsharp signal US is lessthan USa (the region around the pixel in question 200 is darker thanUSa), and selects a curve 604 or a curve 605 when the unsharp signal USis greater than USa (the region around the pixel in question 200 isbrighter than USa).

In this way, the visual processing portion 3 selects the gradation curvethat is represented by the gradation curve 603 when the value of theunsharp signal US is USa, and unless there is a change in the unsharpsignal US, the output signal Yout for the value of the luminance signalYin of the pixel in question 200 is output according to the gradationcurve 603. Thus, with the visual processing portion 3, when the value ofthe luminance signal Yin of the pixel in question 200 is near USa (thiscorresponds to the region 700 in FIG. 24), the slope of the gradationcurve 603 in the region 700 becomes steeper, and thus the change in thegain signal increases and the contrast of the output signal Yout isenhanced. However, with a configuration in which the band limit portion90 is not provided, in the visual processing portion 3, when the valueof the luminance signal Yin of the pixel in question 200 is about USband is significantly larger than the value of the unsharp signal US, theslope of the gradation curve 603 flattens out (this corresponds to theregion 701 in FIG. 24) and the change in the gain signal GAIN in theregion 701 becomes small as well, and thus the contrast of the outputsignal Yout drops.

A method for suppressing a drop in the contrast of the output signalYout in the region 701 is described next using FIG. 25. FIG. 25 is anexplanatory diagram describing the characteristics of the contrastenhancement portion 91. The horizontal axis in FIG. 25 is the luminancesignal Yin that has been input, and the vertical axis is thegradation-converted output signal Yout.

In FIG. 25, USa is the value of the unsharp signal US, which is thebrightness information extracted from the target region 202 surroundingthe pixel in question 200. The brightness near the pixel in question 200is USb at this time, and the luminance value Yin also takes on a valuenear USb.

The visual processing portion 3 selects the gradation curve that isrepresented by the gradation curve 603 when the value of the unsharpsignal US is USa, and unless there is a change in the unsharp signal US,the visual processing portion 3 determines the output signal Yout forthe value of the band limited signal USH in which the band of thespatial frequency of the luminance signal Yin has been limited, andoutputs this according to the gradation curve 603. Since the slope ofthe gradation curve 603 is steep near the value USa, the change in thegain signal GAIN also is large, and the contrast can be enhanced.

On the other hand, the band limited signal USH is the brightness USbnear the pixel in question 200.

Thus, with the visual processing portion 3, even if the luminance signalYin of the pixel in question 200 changes in a range around USb, which issignificantly higher than the value of the unsharp signal US, the gainsignal GAIN that is output by the visual processing portion 3 does notchange because in that narrow region the value of the band limitedsignal USH is fixed at USb due to band limit. In other words, in thenarrow region near the pixel in question 200, a substantially constantvalue (the slope near the line portion of the curve 603) is output asthe gain signal GAIN. In this case, the gain signal GAIN is asubstantially constant value, and thus the output signal Yout that isoutput is substantially proportional to the change in the signal levelof the output signal Ye of the contrast enhancement portion 91. Thecontrast of the output signal Yout can be increased by performinggrayscale conversion by multiplying the band-limited gain signal GAINand the signal Ye obtained by the contrast enhancement portion 91enhancing the contrast of the luminance signal Yin.

The contrast enhancement portion 91 is described next. The contrastenhancement portion 91 creates the enhanced signal Ye according toFormula II, based on the ratio between the luminance signal Yin and theband limited signal USH. Here, α is a parameter for adjusting the degreeof enhancement.Ye=Yin^(α)/(USH)^(α−1) Formula II

Thus, as shown in FIG. 25, when the band limited signal USH is equal toUSb, the value of the luminance signal Yin can be enhanced according tothe curve 802. When the band limited signal USH is less than USb, thevalue of the luminance signal Yin can be enhanced according to the curve801, and when the band limited signal USH is greater than USb, the valueof the luminance signal Yin can be enhanced according to the curve 803.

Setting the value of α in Formula II to greater than 1 (such as 1.5)magnifies the ratio between the value of the pixel in question 200 andthe band limited signal USH, and thus enhances the contrast.

It should be noted that it is also possible for the contrast enhancementportion 91 to create the enhanced signal Ye according to Formula III,based on the difference between the luminance signal Yin and the bandlimited signal USH.Ye=Yin+(α−1)×(Yin−USH) Formula III

With Formula III as well, adopting α value greater than 1 (such as 1.5)for α has the effect of magnifying the difference between the value ofthe pixel in question 200 and the band limited signal USH, and thusenhances the contrast.

As shown in FIG. 26, it is also possible for the contrast enhancementportion 91 to be provided with a 2D LUT whose elements are the luminancesignal Yin and the band limited signal USH. The results of thecomputation according to Formula II or Formula III are found in advanceand set to a LUT 94.

Thus, according to the fourth embodiment of the invention, providing thecontrast enhancement portion 91 allows the contrast of the luminancesignal Yin to be enhanced, and a drop in the contrast of the outputsignal Yout can be suppressed, even if the value (signal level) of theluminance signal Yin that has been input is changed by a value (signallevel) that is significantly larger than the value (signal level) of theunsharp signal US.

A modified example of the contrast enhancement portion 91 serving as afifth modified example is shown in FIG. 27. FIG. 27 is a block diagramshowing the configuration of a contrast enhancement portion 92 servingas a fifth modified example.

In FIG. 27, the contrast enhancement portion 92 employs a LUT 95, a LUT96, and a multiplication portion 900 to accomplish the computation ofFormula II. Here, the results of the computation Yin^(α)are set in theLUT 95, and the results of the computation (USH)^(1−α)are set in the LUT96.

A modified example of the contrast enhancement portion 91 serving as asixth modified example is shown in FIG. 28. FIG. 28 is a block diagramshowing the configuration of a contrast enhancement portion 93 servingas a sixth modified example.

In FIG. 28, the contrast enhancement portion 93 achieves the computationof Formula III through an addition portion 901, an addition portion 902,and a LUT 97. Here, data on the output characteristics, such as thoseshown in FIG. 25, are set in the LUT 97. The horizontal axis of FIG. 29is the input of the LUT 97, and the vertical axis is the output of theLUT 97.

As illustrated in FIG. 29, in the LUT 97 the output is set to 0 duringthe period that the input is from Thb is Thc, so as to keep noise frombeing enhanced. Further, in the LUT 97, the output increase graduallywhile the input is from Tha to Thb, and likewise, the output increasesgradually while the input is from Thc to Thd. To keep fromover-enhancing the contrast, the output is increased until the input isTha or Thd, and when the difference between the luminance signal Yin andthe band limited signal USH is greater than this, the output becomessaturated. It should be noted that in lieu of the LUT 97, it is alsopossible to provide a multiplication portion and for the multiplicationportion to modify the output of the addition portion 902 by a factor of(α−1).

It should be noted that the band limited signal USH that is input to thecontrast enhancement portion 91 serves as the output of the band limitportion 90 of the gain-type visual processing portion 71, but thisconfiguration is not a limitation.

A modified example 7 is a modified example of the configuration, and inthe configuration shown in FIG. 30, it is possible to use the output ofthe band limit portion 90 of the gain-type visual processing portion 72.

A modified example 8 is a modified example of the configuration, and inthe configuration shown in FIG. 31, it is possible to use the bandlimited signal USH of the band limit portion 90 that is providedindependent of the gain-type visual processing portion 73.

Thus, according to the first through fourth embodiments of theinvention, it is possible to provide visual processing devices, displaydevices, image-capturing devices, portable information devices, andintegrated circuits, in which it is possible to inhibit color saturationand adjust the contrast of the image.

It should be noted that, as shown in FIG. 32, a gain-type visualprocessing portion 74 also can be achieved using a gradation-type visualprocessing portion 75 that outputs an output signal Yout that isobtained by converting the gradation of the luminance signal Yin.

If the gradation-type visual processing portion 75 is used, it ispossible to achieve the gain-type visual processing portion 74 byproviding the gradation-type visual processing portion 75 and a divisionportion 61 for dividing the output of the gradation-type visualprocessing portion 75 by the luminance signal Yin.

The gradation-type visual processing portion 75 is furnished with thespatial processing portion 2 for outputting an unsharp signal US fromthe luminance signal Yin, and a visual processing portion 64 thatperforms grayscale conversion according to the luminance signal Yin andthe unsharp signal US and outputs an output signal Yout. The visualprocessing portion 64 outputs the output signal Yout based ontwo-dimensional grayscale conversion characteristics such as those shownin FIG. 2. Thus, the gain-type visual processing portion 74 hascharacteristics that are equivalent to those of the gain-type visualprocessing portion 70 of the first embodiment of the invention, and canbe used as a substitute for the gain-type visual processing portion 70.

FIFTH EMBODIMENT

A visual processing device according to a fifth embodiment is describednext.

FIG. 33 is a block diagram of a visual processing device 1′ according toa fifth embodiment of the invention. The visual processing device 1′performs visual processing on image signals Yin, CRin, and CBin, andoutputs visually-processed images Yout, CRout, and CBout.

The spatial processing portion 2 obtains the pixel values of targetpixels to be targeted for spatial processing, and pixels in the regionaround the target pixels (surrounding pixels), from the luminance signalYin. It then executes spatial processing on the luminance value Yin foreach pixel of the original image that has been obtained, and outputsunsharp signals US. The unsharp signals US are blur signals that areobtained by processing the luminance signals with a low-pass filter.

The visual processing portion 3 obtains the first gain signal GAIN fromthe luminance signal Yin and the unsharp signal US through atwo-dimensional gain function, and outputs the first gain signal GAIN.

The two-dimensional gain function is set to a function in which theslope of the grayscale conversion characteristics shown in FIG. 2, forexample, is the gain. Thus, by multiplying the luminance signal Yin andthe output that is calculated by the two-dimensional gain function, itis possible to output input/output characteristics that are equivalentto the grayscale conversion characteristics shown in FIG. 2.

A correction value determination portion 334 calculates a correctionvalue K for correcting the first gain signal GAIN. The correction valueK corrects the image signal, enhancing or suppressing the contrast. Forexample, it is possible to brighten a dark image or to suppress thebrightness in a bright image and thereby inhibit grayscale saturationand color saturation.

A gain control portion 335 corrects the first gain signal GAIN in pixelunits using the correction value K, and outputs a second gain signalGAIN2. By correcting the first gain signal GAIN with the correctionvalue K, it is possible to create a second gain signal GAIN2 forenhancing or suppressing the contrast without changing the first gainsignal GAIN.

The correction portion 9 is made of a multiplication portion 6, amultiplication portion 7, and a multiplication portion 8, and correctsthe image signal according to the second gain signal GAIN2. Due to thiscorrection, the contrast of the image signal is enhanced or suppressed.

The multiplication portion 6 multiplies the second gain signal GAIN2 andthe luminance signal Yin, and outputs a corrected luminance signal Yout.This corrected luminance signal Yout is an output equivalent to thegrayscale conversion characteristics shown in FIG. 2. The multiplicationportion 7 and the multiplication portion 8 multiply the second gainsignal GAIN2 and the input color signals CRin and CBin, respectively,and output a corrected color signal CRout and a corrected color signalCBout.

Next, the visual processing device 1′ of the fifth embodiment isdescribed in further detail.

In this embodiment, the visual processing device 1′ is set so as to havethe two-dimensional grayscale conversion characteristics shown in FIG.2. Here, the horizontal axis of FIG. 2 is the luminance signal Yin thatis input, and the vertical axis is the converted luminance signal Yout.

The visual processing portion 3 is the same as that described in thefirst embodiment, and thus will not be described here.

The visual processing device 1′ of the fifth embodiment of the inventionperforms image signal processing using gain signals, and by using gainsignals there is the advantage that the scale of the circuit can bereduced. This matter also has been discussed already in the firstembodiment, and thus will not be described here.

The spatial processing portion 2 also is the same as that described inthe first embodiment, and thus will not be described here.

A color saturation detection portion 331 is described next using FIG. 34and FIG. 35. FIG. 34 is a block diagram of the color saturationdetection portion 331.

In FIG. 34, the RGB conversion portion 11 creates an RGB signal from theluminance signal Yin and the color signals CRin and CBin. The maximumvalue detection portion 12 detects the highest value among the R signal,the G signal, and the B signal. A first correction value calculationportion 341 calculates a first correction value K1 from the maximumvalue of the RGB signal that has been detected. A correction valuedetermination portion 334 determines the correction value K in referenceto the correction value K1, a correction value K2 that has been set in aregister 342, and correction values K3 to K6 that have been input fromthe outside, and outputs the correction value K. The correction valuedetermination portion 334 is described in detail later.

Specifically, the first correction value calculation portion 341calculates a correction value K1 for each pixel of the image signal thathas been input based on a curve 1 that has been set so that the maximumvalue of the gain signal GAIN2 after control is equal to or lower thanthe value of the curve 2 shown in FIG. 35. Here, curve 2 indicates themaximum value of the correction value that does not cause colorsaturation.

As long as the ratio of the R signal, the G signal, and the B signal ofthe RGB signal can be kept constant, the color will not change even ifthe RGB signal is multiplied by the first gain signal GAIN. However,when the maximum value of any one of the signals is saturated, thesignal level cannot be increased further and thus the balance of theratio of the RGB signals is disrupted and an unnatural color changeoccurs as a result. To prevent such color saturation, the maximum valueof the signal level should not be exceeded, even when the maximum valueof the RGB signals is multiplied by the first gain signal GAIN. Forexample, the maximum value after gain control may be set to 2.0 when themaximum value of the RGB signal that has been detected is 127.Similarly, the maximum value after gain control is 3.0 when the maximumvalue is 84, and the maximum value after gain control is 1.2 when themaximum value is 212. Here, the RGB signal is a signal with a range of 0to 255. Thus, taking Smax as the maximum value of the RGB signal, andKmax as the maximum value of the gain signal GAIN2 after control inwhich grayscale saturation and color saturation have been suppressed,Kmax=255/Smax.

In this way, grayscale saturation and color saturation can be inhibitedand the color balance can be maintained by setting the correction valueK1 (curve 1) to satisfy the condition of gain signal GAIN2<Kmax (curve2). In addition, unnatural color changes do not occur in the image whenits contrast is enhanced. The method of gain control employing thecorrection value K is discussed in detail later.

It should be noted that the curve 1 of the correction value K1 can be astraight line approximation, or a straight line that is a broken lineapproximation, of curve 2. When the maximum value of the RGB signal is asmall value, preferably it is kept to a value that does not enhance thenoise.

In this way, the Yin signal, the CBin signal, and the CRin signal areconverted to RGB signals, and from the RGB signals it is possible todetermine whether or not grayscale saturation and color saturation, forexample, will ultimately occur in the image when displayed by a displaydevice or the like. That is, since the signals that are ultimatelydisplayed on the display device or the like are RGB signals, byobtaining RGB signals in advance and determining whether or notgrayscale saturation and color saturation, for example, will occur inthe RGB signals, it is possible to reliably know in advance the state ofthe image that will ultimately be displayed on the display device or thelike. Thus, the procedure of obtaining the RGB signals in advance fromthe Yin signal, the CBin signal, and the CRin signal, and performinggain control through the correction value K based on the RGB signalsthat have been obtained, is effective.

The operation of the correction value determination portion 334 isdescribed next using FIG. 36 and FIG. 37. It is also possible for thecorrection value determination portion 334 to receive the correctionvalues K1 to K6 as input and perform computations to determine acorrection value K that corresponds to the image type of the imagesignal, the characteristics of the image, and the self-diagnosis of theintegrated circuit.

In FIG. 36, the M register 23 chooses the operation mode of thecorrection value determination portion 334. For example, when the value2 is set in the M register 23 as shown in Table 371 of FIG. 37, thecorrection value determination portion 334 inputs the value of thecorrection value K2, which has been set to a register 342. Thus, thecorrection value K is set to the constant correction value K2, and whenan unsatisfactory abnormality is observed in the visually processedimage, the internal signals K1 and K3 to K6 of the integrated circuitcan be masked to set the correction value K2 from the outside in orderto perform a self-diagnosis such as evaluating the impact of thecorrection value. It is also possible to forcibly set the correctionvalue K to the correction value K2 by masking the internal signals K1and K3 to K6, and thus it can be used as a test signal for confirmingthe signals in the integrated circuit.

If the M register 23 is set to the value 1, then the correction valuedetermination portion 334 receives the correction value K1 as input andoutputs K1 as the correction value K. Similarly, if the M register 23 isset to the value 3, then the correction value determination portion 334receives the correction value K3 as input and outputs K3 as thecorrection value K. If the M register 23 is set to the value 7, then thecorrection value determination portion 334 receives the correctionvalues K1 and K3 as input and performs a computation with K1 and K3 andoutputs the correction value K. This computation can be a computationfor calculating the minimum value MIN (K1,K3), or can be a computationfor calculating the average value Ave (K1,K3).

Thus, the correction value determination portion 334, depending on thevalue that has been set to the M register 23, can select and output asignal that has been input from the outside, or perform a computationand then output the correction value K. The correction values K3 to K6that are input from the outside are described in detail later.

It should be noted that if the correction value determination portion334. selects and outputs a signal that has been input from the outside,then it is possible to use the correction value that has been input asit is as the correction value K, and it is also possible to obviate thecorrection value determination portion 334.

Next, the gain control portion 335 corrects the first gain signal GAINwith the correction value K, and outputs a second gain signal GAIN2.

The method of control through the correction value K that has been setwill be described in more specific detail.

First, for example, as shown in FIG. 38, there exists the method ofperforming control by interpolating or extrapolating the gain x1 signaland the gain signal GAIN with the correction value K (hereinafter, thisis referred to as interpolation/extrapolation control). Here,interpolation or extrapolation is executed in such a manner that thegain signal GAIN2=correction value K×gain signal GAIN+(1−correctionvalue K)×1. As regards the computation for controlling the gain signal,the computation is extrapolation if K>1 and the gain signal is enhanced,the computation is multiplication by 1 if K=1, and the computation isinterpolation if 0<K<1 and the gain signal is suppressed. It is alsopossible to change the formula to GAIN2=correction value K×(gain signalGAIN−1)+1. In both cases, correction is performed with the correctionvalue K so that the difference between the x1 signal and the gain signalGAIN is either magnified or reduced.

It should be noted that color saturation can be suppressed by settingthe correction value K so that GAIN2<Kmax. In terms of picture quality,if K>1 then the contrast becomes strong and is enhanced, and if 0<K<1then the contrast becomes weak and is suppressed. To curtail colorsaturation, it is sufficient for 0<K<1 so as to suppress the contrast.

Another example of a method for controlling the correction value is toperform control by adding a control value K (Koffset) as shown in FIG.39. Here, the gain signal GAIN2 is expressed by GAIN2=correction valueK+gain signal GAIN. Additionally, to suppress color saturation, thecorrection value K is set so that GAIN2<Kmax.

Thus, if K>0 then control for enhancing the gain is performed, if K=0then no correction is performed, and if K<0 then control for suppressingthe gain is performed. In terms of the picture quality, if K>0 then thecontrast becomes strong and is enhanced, and if K<0 then the contrastbecomes weak and is suppressed. To curtail color saturation, K<0 inorder to suppress the contrast.

It should be noted that in a method for controllingamplification/attenuation using a multiplication value, GAIN2 isexpressed as GAIN2=correction value K×gain signal GAIN. Further, to stemcolor saturation, it is also possible to set the correction value K sothat GAIN2<Kmax.

In this way the gain control portion 335 corrects the first gain signalGAIN with the correction value K and outputs a second gain signal GAIN2,and thus it is possible enhance as well as suppresses the overallcontrast of the image.

Next, the correction portion 9 corrects the image signal according tothe second gain signal GAIN2. The correction portion 9 is made of themultiplication portion 6, the multiplication portion 7, and themultiplication portion 8.

The multiplication portion 6 multiplies the second gain signal GAIN2 andthe luminance signal Yin, and outputs a luminance signal Yout. Themultiplication portion 7 and the multiplication portion 8 multiply thesecond gain signal GAIN2 and the color signals CRin and CBin,respectively, and output color signals CRout and CBout.

It should be noted that each of the Yout signal, the CRout signal, andthe CBout signal are obtained through multiplication with the same gainvalue, that is, GAIN2, by one of the multiplication portions(multiplication portions 6 to 8) and are output from the correctionportion 9, and thus discrepancies in the output timing of the Youtsignal, the CBout signal, and the CRout signal do not occur.Consequently, it is not necessary to provide separate delay means or thelike for synchronizing the output timing of the Yout signal, the CBoutsignal, and the CRout signal.

In this way, the correction portion 9 corrects the image signal. Thus,in brightness adjustment, the correction portion 9 also increases thecolor signals in the areas in which it increases the luminance level,and thus the color does not appear light in these areas. Conversely, italso reduces the color signal in the areas in which it reduces theluminance level, thus the color does not appear dark in these areas.Further, by correcting the input image signal based on the second gainsignal GAIN2, it is possible to inhibit color saturation in areas wherethe luminance level has been increased. It is also possible to controlthe second gain signal GAIN2 with the correction value to correct towarda brighter image so that only the darkened facial regions of people inbacklit images, for example, are enhanced.

It should be noted that it is also possible for the visual processingportion 3 of the visual processing device 1′ (FIG. 33) to input only theluminance signal Yin, and to output a gain signal that is equivalent tothe output obtained by performing gamma conversion of the luminancesignal Yin. With this configuration, the visual processing portion 3 canbe constituted by a LUT storing data having one-dimensional gaincharacteristics. More specifically, the data stored in the LUT can beobtained by selecting a conversion curve having any one of the gaincharacteristics of US0 to USn in FIG. 3, or the data can be createdthrough a one-dimensional gain function that has been set in advance. Itis also possible to create the data to be stored in the LUT using a gainfunction that yields an output that is equivalent to the grayscaleconversion curve that is found from the histogram distribution of theluminance signal in the image.

Thus, due to the visual processing portion 3 storing data based on thegain characteristics, it is possible to reduce the memory capacity morethan if the gamma correction values are stored as tabulated data as theyare.

It is also possible for the image signal that is input and output to beRGB signals, that is, primary color signals. FIG. 40 shows a blockdiagram of a visual processing device 80′ according to a first modifiedexample. To avoid repetition, the description of processing that isidentical to that of the visual processing device 1 has been omitted.The visual processing device 80′ inputs RGB signals as the image signal,and outputs RGB signals that have been corrected through visualprocessing.

The luminance and color conversion portion 85 converts the image signalsRin, Gin, and Bin that have been input into a luminance signal Yin andcolor signals CRin and CBin. Here, the luminance component informationis extracted from the Rin, Gin, and Bin and created to match humanvision characteristics. For example, the luminance signal Yin isYin=0.299×Rin+0.587×Gin+0.114×Bin. The color signals (CRin, CBin) areCRin=(−0.1687)×Rin+(−0.3313)×Gin+0.5×Bin, andCBin=0.5×Rin+(−0.4187)×Gin+(−0.0813)×Bin.

The color saturation detection portion 331 (FIG. 33) calculates thecorrection value K1 from the converted luminance signal Yin, the colorsignal CRin, and the color signal CBin. It should be noted that althoughthe RGB conversion portion 11 (FIG. 34) of the color saturationdetection portion 331 creates RGB signals from the luminance signal Yin,the color signal CRin, and the color signal CBin, it is also possible todirectly use the image signals Rin, Gin, and Bin that have been input.In this case, the RGB conversion portion 11 can be omitted.

The correction value determination portion 334 (FIG. 36) determines thecorrection value K with reference to the correction value K1. Thecorrection value determination portion 334 selects a signal that hasbeen input from the outside and outputs this as the correction value K,or performs a computation and then outputs a correction value K,according to the value that has been set in the M register 23.

The visual processing portion 3 receives the output of the spatialprocessing portion 2 and the luminance signal Yin as input, andcalculates the first gain signal GAIN.

The gain control portion 335 outputs a second gain signal GAIN2 that isobtained by correcting the first gain signal GAIN that has been inputwith the correction value K.

The correction portion 81 is made of multiplication portions 82, 83, and84. The multiplication portions 82, 83, and 84 multiply the second gainsignal GAIN2 and the image signals Rin, Gin, and Bin, respectively, andoutput visually corrected RGB signals Rout, Gout, and Bout. Thus, it ispossible to enhance or suppress the contrast while retaining the ratioof Rin, Gin, and Bin. Further, since control can be performed to enhanceor suppress the gain signal with the correction value K, it is possibleto inhibit saturation of the grayscale gradation and color saturation.It is also possible to enhance the skin color contrast in the faces ofpeople in backlit scenes.

It is also possible for the output of the visual processing portion 3(FIG. 33) to be changed to a difference signal of the difference betweenthe output signal after grayscale conversion and the luminance signalYin. A visual processing device 60 according to a second modifiedexample is described using FIG. 41 and FIG. 42.

FIG. 41 is a block diagram of the visual processing device 60′ of thesecond modified example. The visual processing portion 63 is designedsuch that it outputs the difference between the output signal resultingfrom the grayscale conversion shown in FIG. 2 and the luminance signalYin as a difference signal DIFF. The difference signal DIFF is thedifference between the output signal resulting from the grayscaleconversion shown in FIG. 2 and the luminance signal Yin, and as shown inFIG. 42, is determined based on the unsharp signal USn and the luminancesignal Yin. Thus, the signal that is obtained by the addition portion 62taking the sum of the difference signal DIFF and the luminance signalYin is the same as the output signal resulting from the grayscaleconversion shown in FIG. 2.

The addition portion 62 calculates an addition value Yx by taking thesum of the difference signal DIFF and the luminance signal Yin. Theaddition value Yx is a signal that is equivalent to the output signalafter the grayscale conversion of FIG. 2.

The division portion 61 calculates the first gain signal GAIN bydividing the addition value Yx by the value of the luminance signal Yin.That is, GAIN=Yx/Yin. The first gain signal GAIN is equivalent toadopting the slope of the grayscale conversion curve of FIG. 2 as thegain.

The color saturation detection portion 331 (FIG. 33) calculates thecorrection value K1 from the converted luminance signal Yin, the colorsignal CRin, and the color signal CBin.

The correction value determination portion 334 (FIG. 36) determines thecorrection value K in reference to the correction value K1. Thecorrection value determination portion 334 selects a signal that hasbeen input from the outside and outputs this as the correction value K,or performs a computation and then outputs the correction value K, inaccordance with the value that has been set in the M register 23.

The gain control portion 335 outputs a second gain signal GAIN2 that isobtained by using the correction value K to correct the first gainsignal GAIN that has been input.

The multiplication portions 6, 7, and 8 of the correction portion 9multiply the second gain signal GAIN2 and the luminance signal Yin, thecolor signal CRin, and the color signal CBin, respectively, and outputthe luminance signal Yout, the color signal CRout, and the color signalCBout.

It should be noted that the visual processing portion 63 can beconstituted by a two-dimensional LUT or can be constituted by aone-dimensional LUT that stores a function of the luminance signal Yinand the difference signal DIFF.

By storing the difference between the output of the grayscale conversioncurve and the luminance signal Yin in the LUT, the memory capacity canbe reduced more than when gamma correction values of the gradationcorrection curve are stored.

Thus, according to this embodiment, it is possible to achieve a visualprocessing device 1 that can execute precise contrast adjustment onimage signals that have been input and that does not cause discrepanciesin the output timing of the image signals that are output. Further, bycorrecting the first gain signal GAIN with a predetermined correctionvalue that has been set, the overall contrast of the image can beenhanced and suppressed. By increasing the gain with the correctionvalue K, it is possible to enhance the facial region, for example, ofpeople in dark areas of an image of a backlit scene, giving them aneffect of illumination by auxiliary light with reflector board. On theother hand, by reducing the gain with the correction value K, it ispossible to suppress grayscale saturation and color saturation at darkreds and dark blues.

Since the maximum value detection portion detects the maximum value whenconverting from the image signal to RGB signals, and the first gainsignal is controlled based on the maximum value of the RGB signals thathas been detected, it is possible to detect the level of the gain signalthat will cause color saturation, and a correction value that does notresult in color saturation can be calculated.

The visual processing portion 1′ of this embodiment performs grayscaleconversion using the gain signal. The gain signal that is output for theluminance signal Yin changes more smoothly than does the grayscaleconversion signal, and thus sufficient processing precision can beensured even if the luminance signal Yin and the unsharp signal US aredecimated roughly. Thus, the bit precision of the luminance signal Yinthat is input to the visual processing portion 3 can be lowered, andthis allows the circuit scale of the hardware to be reduced. It is alsopossible to reduce the memory capacity when the visual processingportion 3 is constituted by a LUT.

Further, in the visual processing device 1′ of this embodiment, havingthe gain characteristics be two-dimensional gain characteristics thatare determined from the image signal and the unsharp signal US allowsthe contrast in dark regions in the image to be enhanced by raising itwith the gain curve when the unsharp signal US is small, and allows thecontrast in bright regions in the image to be suppressed with the gaincurve when the unsharp signal US is large, and thus it is possible toperform brightness adjustment that is ideal for both dark regions andbright regions. Thus, it is possible to perform grayscale conversionsuch that even if the dark regions, and in particular the facial regionof people, in a backlit scene enhanced up to an appropriate brightness,the background region does not become saturated.

Constituting the visual processing portion with a LUT allows differentvisual characteristics to be achieved by rewriting the table data. Italso becomes possible to achieve complex, non-linear gaincharacteristics with ease.

Because the correction value K allows the effects of the visualprocessing to be both strengthened and weakened, it is not necessary tocreate gain characteristic data that correspond to a different strengthof the effect. Thus, it is possible to do without preparing LUTs withdata of various strengths, and this allows the memory capacity to bereduced. Additionally, since it is not necessary to replace the contentof the LUT, the time for changing can be significantly shortened.Changing the correction value K in real time allows the strength of theeffect to be changed for each region of the image. Specifically, it ispossible to change the correction value K per frame or per pixel.

SIXTH EMBODIMENT

A sixth embodiment is described next using FIGS. 15 and 43 to 46.Components that are the same as in the second embodiment and the fifthembodiment have been assigned the same reference numerals as before andare not described in detail.

This sixth embodiment describes an example of how the visual processingdevice 1′ determines the correction value of the first gain signal GAIN.

FIG. 43 is a block diagram of a display device 30′ according to thesixth embodiment of the invention.

In FIG. 43, the visual processing device 1′ visually processes the videosignal that is input and outputs the result to the output portion 35.The output portion 35 is for example provided with a display portionsuch as a CRT, a plasma display panel, or a liquid crystal panel, and asound output portion such as a speaker, and outputs the audio signalthat has been input and displays the visually processed video signal. Itshould be noted that it is also possible for the output portion 35 toconvert the input signal to match the display colors of the display andthen display it. For example, it can convert a luminance color signalinto RGB signals, which are primary color signals. It should also benoted that modified examples of the visual processing device 1 areconceivable depending on the structure of the signal that is handled bythe output portion 35. For example, if the output portion 35 handlesluminance signals and color signals, then the visual processing device1′ (FIG. 33) is preferable, whereas if it handles RGB signals, then thevisual processing device 80′ (FIG. 40) is preferable. In this way, aconfiguration that is suited for the video signal can be used.

Next, a signal level detection portion 34′ stores the luminance signal,of the video signals, in a frame memory, and computes the average valueof the image signals in one frame or one field to detect the mean signallevel. The correction value K3 is calculated from this detected meansignal level. It should be noted that the mean signal level can be anaverage value that is obtained by averaging the luminance signals, orcan be a value that is obtained by averaging the various RGB signals andthen finding the mean value of those average values.

For example, a case in which gain control is performed throughinterpolation/extrapolation control is described. An image in which themean signal level is higher than a predetermined value PH is defined asa “bright image,” and in a bright image the correction value K3 is setto 0.8, whereas an image in which the mean signal level is lower than apredetermined value PL is defined as a “dark image,” and in a dark imagethe correction value K3 is set to 1.2. Thus, the correction value can beset based on the characteristics of the image.

A case in which gain control is performed using an offset value isdescribed next. An image in which the mean signal level is higher than apredetermined value PH is defined as a “bright image,” and in a brightimage the correction value K3 is set to −0.2, whereas an image in whichthe mean signal level is lower than a predetermined value PL is definedas a “dark image,” and in a dark image the correction value K3 is set to+0.2. Thus, the correction value can be set based on the characteristicsof the image.

Thus, by correcting the gain signal to suppress the signal level in abright image, it is possible to increase the heat resistance and curbpower consumption in the display device, which is a plasma displaypanel, for example.

To raise the heat resistance and lower the power consumption in a plasmadisplay panel, the drive portion is provided with a display controlfunction of performing control on the display panel side to lower theoverall brightness of the screen when the average signal level of theimage to be displayed exceeds a predetermined level. This displaycontrol function operates independent of the video signal processing.

Thus, visually processing regions of a predetermined brightness in theimage to enhance those regions activates the display control function,and the drive portion lowers the overall brightness of the screen,darkening even those regions that were sufficiently bright before visualprocessing and thus resulting in an image that is not sharp overall andhas lower picture quality. In other words, there is the risk of losingthe effects from the visual processing that has been performed. For thisreason, the gain signal is corrected to below the mean signal level atwhich the display control function of the drive portion is activated sothat it is possible to achieve effective contrast adjustment.

The skin color detection portion 36′ detects skin color regions from theluminance signal Yin, the color signal CBin, and the color signal CRin,and calculates the correction value K4. As shown in FIG. 44, the skincolor detection portion 36′ is provided with a first color regiondetection portion 361′ that detects a predetermined first color regionfrom the color signal CRin and outputting a weight value Ka, a secondcolor region detection region 362′ that detects a predetermined secondcolor region from the color signal CBin and outputs a weight value Kb,and a luminance region detection portion 363′ that detects apredetermined brightness region from the luminance signal Yin andoutputs a weight value Kc, and the skin color detection portion 36′obtains the correction value K4 by defining the degree of likeness toskin as the product of the various weight values. For example, thecorrection value K4 is calculated by the multiplication portions 364 and365 by correction value K4=Ka×Kb×Kc.

The skin color detection portion 36′ detects whether the video signals(luminance signal Yin, color signal CBin, color signal CRin) that arebeing detected belong to the skin color region shown in FIG. 15. Thus,it is possible to set the correction value K according to the brightnessof the image as well as the color. In particular, since it is possibleto enhance the brightness of the skin color region of a person's facethat has been darkened by shadow (effect of illumination by auxiliarylight with reflector board), it is possible to inhibit face shininess,grayscale saturation, and color saturation in the skin color regions ofpeople's faces that are already bright because they are in regions wherethe sun is shining.

The operation of the skin color detection portion 36′ is described morespecifically using FIG. 45. Here, gain control is carried out throughinterpolation/extrapolation control.

The first color region detection portion 361′ inputs the color signalCRin and outputs a weight value Ka according to the weight functionshown in FIG. 45A. Similarly, the second color region detection region362′ inputs the color signal CBin and outputs a weight value Kbaccording to the weight function shown in FIG. 45B. The luminance regiondetection portion 363′ inputs the luminance signal Yin and outputs aweight value Kc according to the weight function shown in FIG. 45C. Thedegree of likeness to skin is defined as the product of the variousweight functions, and is calculated by correction value K4=Ka×Kb×Kc. Theweight for the boundary of the target skin color region is changedgradually so that the color near the boundary between the skin colorregion and the outside does not become unnatural. It should be notedthat the weight function can have the shape of a trapezoid or atriangle. Image evaluation, for example, can be employed to set theoptimal function. It should be noted that it is also possible for thecorrection value K4 to be the smallest of value among Ka, Kb, and Kc, orit can be the average of the three.

Thus, by setting the weight value Kc to a value greater than the x1signal (by setting the correction value K to a large value) in skincolor regions (dark regions) where the luminance value of the luminanceregion is Yq<luminance value<Yp, it is possible to enhance thebrightness of the skin color of the face of a person that has becomedark because he is in the shade, and by setting the weight value Kc forthe luminance signal to a small value (setting the correction value K4that is calculated by the skin color detection portion 36′ to a smallvalue) for the skin color of a face that is already bright in a regionwhere the sun is shining (bright region), it is possible to keep thefrom appearing shiny and to inhibit saturation. Thus, it is possible tocontrol the correction value K depending on the characteristics of theimage in order to enhance or suppress the brightness.

It should be noted that the minimum values of the weight coefficientsand the shapes of the weight functions can be different from oneanother. A case was described in which gain control is conducted throughinterpolation/extrapolation control, but in a case where gain control iscarried out using an offset value, the same effects are attained byadopting a function where the values for K>0 in skin color regions andK=0 or K<0 in other regions have been set in advance.

The broadcast content detection portion 37′ detects EPG display datathat have been separated from the program information separating portion32, and the genre information and the program description information ofthe data that are currently being received, and calculates thecorrection value K5. It should be noted that the genre information ofthe data and the image information also may be detected from MPEG streaminformation.

The broadcast content detection portion 37′ detects the type of contentthat has been received, such as “News,” “Sports,” “Tabloid Show,”“Movie,” and “Drama” as shown in FIG. 46, and calculates a correctionvalue K5 for each of these. Here, a case in which gain control isperformed through interpolation/extrapolation control is described.

News images are captured under conditions that are not uniform and someimages are dark, so in order to sharpen the images, a correction valueof 1.3 is set if the content type is news. Similarly, a correction valueof 1.2 is set for sports, a correction value of 1.0 is set for tabloidshows because they are filmed in studios or the like where the lightingis considered, and a correction value of 0.7 is set for movies and acorrection value of 0.9 is set for dramas, because thick video imagesare preferable. In this way, the correction values K5 are tabulated inadvance to match the content type. It is therefore possible to set theideal correction value K5 according to the type of the image.

It should be noted that it is also possible to alter this table from theoutside. The case described above is for when gain control is performedthrough interpolation/extrapolation control, but in a case where gaincontrol is carried out using an offset value, the same effects areattained by setting the correction value K to K>0 to enhance thebrightness, K=0 for no correction, and K<0 to suppress the brightness.

Next, the electric field strength detection portion 38′ detects thestrength of the electric field of the received electromagnetic wave thathas been received by the tuner 31, and calculates the correction valueK6 based on the strength of the electric field. A case in which gaincontrol is conducted through interpolation/extrapolation control isdescribed. For example, if the electric field strength is “strong,” thenthe correction value K6 can be set to 1.2, whereas if the electric fieldstrength is “weak,” then the correction value K6 can be set to 0.8.

It should be noted that a case where gain control is conducted using amultiplication value has been described described, but in a case wheregain control is conducted using an offset value, the same effects areattained by setting a value that leads to K=+0.2 if the electric fieldstrength is “strong,” and a value that leads to K=−0.2 if the electricfield strength is “weak.”

Thus, the correction value K6 can be set so that the noise in imageswith a weak electric field and a poor S/N ratio is not enhanced.

As described above, with this embodiment, the signal level detectionportion 34′ calculates the correction value K3 in accordance with themean signal level that has been detected from the image signals in asingle frame or a single field. The visual processing device 1′ cancorrect the first gain signal GAIN according to the correction value K3.

Thus, the correction value can be set according to the mean signal levelthat has been detected, and in bright images the gain signal can becontrolled to suppress the signal level of the image. By suppressing thesignal level, it is possible to increase the heat resistance and curbpower consumption in the display device, which for example is a plasmadisplay panel. In addition, since it is possible to keep the gain signalbelow the level at which the function for lowering the overallbrightness of the screen when the mean signal level of the image to bedisplayed exceeds a predetermined level is activated even in a plasmadisplay panel, it is possible to achieve contrast adjustment that iseffective.

The skin color detection portion 36′ calculates the correction value K4according to the degree of likeness to skin color by performingcomputations with the weight coefficients Ka, Kb, and Kc correspondingto the color signals and the luminance signal, which are set in advance.The visual processing device 1′ can correct the first gain signal GAINaccording to the correction value K4.

Thus, by adopting a weight function that increases the various weightvalues in predetermined color regions and luminance regions, it ispossible to enhance the brightness of the skin color of the darkenedfaces of people in shadows, giving the skin an effect of illumination byauxiliary light with reflector board and allowing the darkness of theskin color to be removed. Conversely, it is possible to keep the skincolor of already bright faces in regions where the sun is shining fromappearing shiny or becoming saturated.

The broadcast content detection portion 37′ calculates the correctionvalue K5 according to the broadcast content that has been detected fromthe program information separating portion 32, which separates programinformation from the data that have been received. The visual processingdevice 1′ can correct the first gain signal GAIN according to thecorrection value K5.

Thus, an optimal correction value can be set for each content type, andit is possible to set correction values that fit the contrast adjustmentvalues necessary for the content.

The electric field strength detection portion 38′ calculates thecorrection value K6 according to the value of the electric fieldstrength when the tuner 31 receives image data. The visual processingdevice 1′ can correct the first gain signal GAIN according to thecorrection value K6.

Thus, the correction value can be set based on the value of the electricfield strength, it is possible to detect images whose electric fieldstrength is weak and whose received data have a poor S/N ratio and thencontrol the gain signal for the entire image, and it is possible tosuppress enhancement of the noise in images with a poor SIN ratio.

The display device 30′ of the invention is provided with the tuner 31for receiving image data that have been transmitted or broadcast, the AVdecoding portion 33 for decoding the image data to video signals, thevisual processing device 1′ for visually processing the decoded videosignals and outputting the result, and the output portion 35 fordisplaying the visually processed video signals.

With this configuration, it is possible to achieve a display device 30′that can perform visual processing that inhibits color saturationthrough contrast adjustment of the image. Further, by suppressing thegain signal, it is possible to keep down the signal level in brightimages and increase the heat resistance and curb power consumption inthe display portion, which for example is a plasma display panel. Inaddition, since it is possible to keep the gain signal below the levelat which the function for lowering the overall brightness of the screenwhen the mean signal level of the image to be displayed exceeds apredetermined level is activated, even in a plasma display panel havingthis function, it is possible to achieve contrast adjustment that ishighly effective.

SEVENTH EMBODIMENT

An example of the application of the visual processing device 1 or 1′,as well as a system using the same according to a second example of thepresent invention are described with reference to FIGS. 47 to 50.

FIG. 47 is a block diagram showing an overall structure of a contentproviding system ex100 that realizes a content delivering service. Anarea where a communication service is provided is divided into cells ofa desired size, and base stations ex107-ex110 that are fixed radiostations are provided in the cells.

This content providing system ex100 includes a computer ex111, apersonal digital assistant (PDA) ex112, a camera ex113, a cellular phoneex114, a cellular phone with camera ex115 and other equipment that areconnected to the Internet ex101 for example via an internet serviceprovider ex102, a telephone network ex104 and base stations ex107-ex110.

However, the content providing system ex100 can adopt any combinationfor connection without being limited to the combination shown in FIG.47. In addition, each of the devices can be connected directly to thetelephone network ex104 without the base stations ex107-ex110 that arefixed radio stations.

The camera ex113 is a device such as a digital video camera that canobtain a moving image. In addition, the cellular phone may be any typeof PDC (Personal Digital Communications) method, CDMA (Code DivisionMultiple Access) method, W-CDMA (Wideband-Code Division Multiple Access)method, or GSM (Global System for Mobile Communications) method, or acellular phone of PHS (Personal Handyphone System).

In addition, the streaming server ex103 is connected to the camera ex113via the base station ex109 and the telephone network ex104, so that livedelivery can be performed on the basis of coded data transmitted by auser of the camera ex113. The coding process of the obtained data may beperformed by the camera ex113 or by a server for transmitting data. Inaddition, the moving image data obtained by the camera ex116 may betransmitted to the streaming server ex103 via the computer ex111. Thecamera ex116 is a device that can take a still image like a digitalcamera and a moving image. In this case, coding of the moving image datamay be performed by the camera ex116 or by the computer ex111. Inaddition, the coding process may be performed by an LSI ex117 in thecomputer ex111 or the camera ex116. Note that it is possible toincorporate software for coding and decoding images into a storagemedium (a CD-ROM, a flexible disk, a hard disk or the like) that is arecording medium readable by the computer ex111. Furthermore, thecellular phone with camera ex115 may transmit the moving image data. Inthis case, the moving image data is coded by the LSI in the cellularphone ex115.

In this content providing system ex100, content (for example, a movingimage of a music concert) that the user is recording with the cameraex113 or the camera ex116 are coded as shown in the above-describedembodiments and transmitted to the streaming server ex103, while thestreaming server ex103 delivers a stream of the content data to a clientwho made a request. The client may be the computer ex111, the PDA ex112,the camera ex113, the cellular phone ex114 or the like that can decodethe coded data. Thus, in the content providing system ex100, the clientcan receive and reproduce the coded data. The system can realizepersonal broadcasting when the client receives, decodes and reproducesthe stream in real time.

To encode or decode the content, the visual processing devices may beused. For example, the computer ex111, the PDA ex112, the camera ex113,the cellular phone ex114 or the like may be provided with the visualprocessing devices, execute the visual processing methods, and thevisual processing programs.

In addition, the streaming server ex103 may provide the two-dimensionalgain data (profile) to the visual processing device via the Internetex101. Furthermore, there may be a plurality of streaming servers ex103,and each of them may provide different two-dimensional gain data.Further, the streaming sever ex103 may be for creating thetwo-dimensional gain data. When the visual processing device can thusobtain the two-dimensional gain data via the Internet ex101, the visualprocessing device does not have to store in advance the two-dimensionalgain data used for the visual processing, and the memory capacity of thevisual processing device can be reduced. In addition, because thetwo-dimensional gain data can be obtained from a plurality of serversconnected via the Internet ex101, different visual processings can berealized.

An example regarding a cellular phone will now be described.

FIG. 48 shows the cellular phone ex115 that utilizes the visualprocessing device 1 or 1′ of the present invention. The cellular phoneex115 includes an antenna ex201 for transmitting and receiving radiowaves with the base station ex110, a camera portion ex203 such as a CCDcamera that can take a still image, a display portion ex202 such as aliquid crystal display for displaying images obtained by the cameraportion ex203 or images received by the antenna ex201 after the imagedata are decoded, a main body portion including a group of operatingkeys ex204, a sound output portion ex208 such as a speaker for producingsounds, a sound input portion ex205 such as a microphone for receivingsounds, a recording medium ex207 for storing coded data or decoded datasuch as data of taken moving images or still images, data of receivede-mails, moving images or still images, and a slot portion ex206 thatenables the recording medium ex207 to be attached to the cellular phoneex115. The recording medium ex207 such as an SD card includes a plasticcase housing a flash memory element that is one type of EEPROM(Electrically Erasable and Programmable Read Only Memory) nonvolatilememory that is electronically rewritable and erasable.

Furthermore, the cellular phone ex115 will be described with referenceto FIG. 49. The cellular phone ex115 includes a main controller portionex311 for controlling each portion of the main body portion having thedisplay portion ex202 and the operating keys ex204, a power sourcecircuit portion ex310, an operational input controller portion ex304, animage coding portion ex312, a camera interface portion ex303, an LCD(Liquid Crystal Display) controller portion ex302, an image decodingportion ex309, a multiplex separation portion ex308, a recording andreproduction portion ex307, a modem circuit portion ex306 and a soundprocessing portion ex305, which are connected to each other via asynchronizing bus ex313.

When the user turns on a clear and power key, the power source circuitportion ex310 supplies power from a battery pack to each portion so thatthe digital cellular phone with camera ex115 is activated.

The cellular phone ex115 converts a sound signal collected by the soundinput portion ex205 during a sound communication mode into digital sounddata by the sound processing portion ex305 under control of the maincontroller portion ex311 that includes a CPU, a ROM and a RAM. Thedigital sound data are processed by the modem circuit portion ex306 as aspectrum spreading process and are processed by the transmission andreception circuit portion ex301 as a digital to analog conversionprocess and a frequency conversion process. After that, the data aretransmitted via the antenna ex201. In addition, the cellular phone ex115amplifies a signal that is received by the antenna ex201 during thesound communication mode and performs the frequency conversion processand an analog to digital conversion process on the data, which isprocessed by the modem circuit portion ex306 as a spectrum inversespreading process and is converted into a analog sound signal by thesound processing portion ex305. After that, the analog sound signal isdelivered by the sound output portion ex208.

Furthermore, when transmitting electronic mail during a datacommunication mode, text data of the electronic mail are entered byusing the operating keys ex204 of the main body portion and are given tothe main controller portion ex311 via the operational input controllerportion ex304. The main controller portion ex311 performs the spectrumspreading process on the text data by the modem circuit portion ex306and performs the digital to analog conversion process and the frequencyconversion process by the transmission and reception circuit portionex301. After that, the data are transmitted to the base station ex110via the antenna ex201.

When transmitting image data during the data communication mode, theimage data obtained by the camera portion ex203 are supplied to theimage coding portion ex312 via the camera interface portion ex303. Inaddition, if the image data are not transmitted, it is possible todisplay the image data obtained by the camera portion ex203 directly bythe display portion ex202 via the camera interface portion ex303 and anLCD controller portion ex302.

The image coding portion ex312 converts the image data supplied from thecamera portion ex203 into the coded image data by compressing and codingthe data, and the coded image data are supplied to the multiplexseparation portion ex308. In addition, the cellular phone ex115 collectssounds by the sound input portion ex205 while the camera portion ex203is taking the image, and the digital sound data is supplied from thesound processing portion ex305 to the multiplex separation portionex308.

The multiplex separation portion ex308 performs multiplexing of thecoded image data supplied from the image coding portion ex312 and thesound data supplied from the sound processing portion ex305 by apredetermined method. Multiplexed data obtained as a result areprocessed by the modem circuit portion ex306 as a spectrum spreadingprocess and are processed by the transmission and reception circuitportion ex301 as a digital to analog conversion process and a frequencyconversion process. After that, the data are transmitted via the antennaex201.

When receiving moving image file data that are linked to a web pageduring the data communication mode, a signal received from the basestation ex110 via the antenna ex201 is processed by the modem circuitportion ex306 as a spectrum inverse spreading process. Multiplexed dataobtained as a result are supplied to the multiplex separation portionex308.

In addition, in order to decode multiplexed data received via theantenna ex201, the multiplex separation portion ex308 separates a codedbit stream of image data in the multiplexed data from a coded bit streamof sound data. Then, the multiplex separation portion ex308 supplies thecoded image data to the image decoding portion ex309 via thesynchronizing bus ex313 and supplies the sound data to the soundprocessing portion ex305.

Next, the image decoding portion ex309 generates reproduction movingimage data by decoding the coded bit stream of the image data andsupplies the data to the display portion ex202 via the LCD controllerportion ex302. Thus, the moving image data included in a moving imagefile that is linked to a home page can be displayed. In this case, thesound processing portion ex305 converts the sound data into an analogsound signal, which is supplied to the sound output portion ex208. Thus,sound data included in the moving image file that is linked to a homepage can be reproduced.

Note that the image decoding portion ex309 may be provided with thevisual processing devices shown in the above-described embodiments.

Note that the present invention is not limited to the example of thesystem described above. Digital broadcasting by satellite or terrestrialsignals has been a recent topic of discussion. As shown in FIG. 50, thevisual processing devices of the present invention can be incorporatedinto the digital broadcasting system, too.

More specifically, in a broadcast station ex409, a coded bit stream ofimage information is sent to a communication or a broadcasting satelliteex410 via a radio wave. The broadcasting satellite ex410 that receivedthe coded bit stream of image information sends radio waves forbroadcasting. These radio waves are received by an antenna ex406 of ahouse equipped with a satellite broadcasting reception facility, and adevice such as a television set (a receiver) ex401 or a set top box(STB) ex407 decodes the coded bit stream and reproduces the same. Inaddition, the television set (the receiver) ex401 or the set top box(STB) ex407 may be provided with the visual processing device shown inthe above-described embodiments, use the visual processing method shownin the above-described embodiments or execute the visual processingprogram shown in the above-described embodiments. In addition, areproduction device ex403 for reading and decoding a coded bit streamthat is recorded on a storage medium ex402 such as a CD or a DVD that isa recording medium may be equipped with the visual processing devices,the visual processing methods, and the visual processing programs shownin the above-described embodiments. In this case, the reproduced imagesignal and text track are displayed on a monitor ex404. In addition, itis possible to mount the visual processing devices, the visualprocessing methods, and the visual processing programs shown in theabove-described embodiments, in a set top box ex407 that is connected toa cable ex405 for a cable television or the antenna ex406 for asatellite or surface wave broadcasting, so that the image can bereproduced on a monitor ex408 of the television set. In this case, it ispossible to incorporate the visual processing devices shown in theabove-described embodiments not into the set top box but into thetelevision set. In addition, it is possible that a car ex412 equippedwith an antenna ex411 receives a signal from the broadcasting satelliteex410 or the base station ex107 and reproduces the moving image on adisplay of a navigation system ex413 in the car ex412.

Furthermore, it is possible to encode the image signal and record theencoded image signal in a recording medium. As a specific example, thereis a recorder ex420 such as a DVD recorder for recording image signalson a DVD disk ex421 or a disk recorder for recording image signals on ahard disk. Furthermore, it is possible to record on an SD card ex422. Inaddition, in case that the recorder ex420 includes the visual processingdevices of the present invention, it is possible to reproduce imagesignals recorded on a DVD disk ex421 or a SD card ex422 via the imagesignal processing device, so as to display on the monitor ex408.

Note that in the structure of the navigation system ex413 shown in FIG.49, the camera portion ex203, the camera interface portion ex303 and theimage coding portion ex312 can be omitted. This can be also applied tothe computer ex111 and the television set (the receiver) ex401.

In addition, the terminal device such as the cellular phone ex114 mayinclude three types of assemblies. A first type is a transmission andreception terminal having both the coder and the decoder, a second typeis a transmission terminal having only a coder and a third type is areception terminal having only a decoder.

Thus, the visual processing devices, the visual processing methods, andthe visual processing programs shown in the above-described embodimentscan be used for any device and system described above, so that effectsdescribed above can be obtained.

The various functions such as the spatial processing function, visualprocessing function, correction function, band limit function, contrastenhancement function and the like in the visual processing device,visual processing portion, display device and system according to thepresent invention explained in the aforementioned embodiments may becarried out by hardware using an integrated circuit, or by software thatoperates using a CPU, digital signal processor and the like.Alternatively, they may be carried out by mixed processing using thehardware and software.

When the functions are carried out by the hardware, each function in theembodiments of the present invention may be realized by a separateintegrated circuit, or a part or all of the functions may be realized byone integrated circuit.

In addition, the integrating circuit may be realized by an applicationspecific integrated circuit or a versatile processing unit. For example,it is possible to use an FPGA (Field Programmable Gate Array) that isprogrammable after the LSI is produced or a silicon figurable processorthat can restructure connection or setting of circuit cells in the LSI.

Furthermore, if another technique for integrating circuits rather thanhe LSI appears with the progress of semiconductor technology, then thattechnique may be utilized for integrating the functional blocks.Biotechnology has the potential for such technology.

Next, a case in which various functions are executed by software isdescribed using FIG. 51. FIG. 51 is a block diagram showing theconfiguration of a computer 40 according to an embodiment of theinvention.

In FIG. 51, the computer 40 is provided with a CPU 41 that executes thecommands of various types of programs, a ROM 42 storing programs, forexample, a RAM 43 holding temporarily stored data, an input portion 44that inputs images, an output portion 45 that outputs images, and amemory portion 46 that stores programs and various types of data.

The computer 40 also can be provided with a communication portion 47 forcommunicating with the outside, and a drive portion 48 for suitablyconnecting to information storage media.

The various functional portions send and receive control signals anddata, for example, via a bus 49.

The CPU 41 executes various functions according to programs stored onthe ROM 42, programs stored on the memory portion 46, and programsstored on the RAM 43.

The ROM 42 stores a visual processing program and characteristic data,for example.

The RAM 43 temporarily stores data that are required for the processingof the various functions by the CPU 41.

The input portion 44 inputs images. For example, it is possible for theinput portion 44 to receive electromagnetic waves to obtain broadcastimage data, and decode the encoded image data that have been obtained toconvert them into data that can be processed by the visual processingportion 1 or the visual processing portion 1′. Thus, by the CPU 41executing the process steps of the visual processing portion 1 or thevisual processing portion 1′ on the input image data and displaying thedata on the output portion 45, it is possible to achieve a digitaltelevision. It is also possible to obtain digital images directly over awired connection.

The output portion 45 outputs the images. For example, the outputportion 45 outputs to a display device such as a liquid crystal displaydevice or a plasma display.

The memory portion 46 comprises a magnetic memory and the like, andstores software that is a program group necessary for the visualprocessing. Note that the programs constituting the software for thevisual processing may be incorporated into the computer by the dedicatedhardware in advance, or may be incorporated into the ROM 42 or thememory portion 46 in advance.

The communication portion 47 may be connected to the network and thelike, and obtain the program via the network, or may install theobtained program in the memory portion 46 as necessary. In this way, thecomputer 40 can download the program via the communication portion 47.

The drive portion 48 appropriately connects to an information storagemedium and obtains information stored therein. The information storagemedium may be, for example, the disk 50 such as a magnetic disk, magnetooptical disk, optical disk, or the memory card 51 such as asemiconductor memory. In addition, the program having the variousfunctions, characteristic data and the like may be stored in the disk 50or the memory card 51 such as the semiconductor memory, and theinformation may be provided to the computer 40.

A program causes the computer 40 to execute a visual processing step ofoutputting a first gain signal having predetermined gain characteristicsin response to an image signal that has been input, a gain limit step oflimiting the first gain signal with a predetermined limit value that hasbeen set and outputting the result as a second gain signal, and acorrection step of correcting the image signal based on the second gainsignal.

It is also possible to further execute a spatial processing step ofperforming a predetermined spatial processing on the image signal andoutputting the processed signal, and for a first gain signal having gaincharacteristics based on the image signal and the processed signal to beoutput in the visual processing step.

A program also causes the computer 40 to execute a spatial processingstep of performing a predetermined spatial processing on the imagesignal and outputting a processed signal, a visual processing step ofoutputting a gain signal having gain characteristics based on the imagesignal and the processed signal, and a correction step of correcting thegrayscale of the image signal based on the gain signal.

In the visual processing step it is also possible to output a gainsignal in which the band of the spatial frequency that can respond tothe image signal has been limited.

It is also possible for the communication portion 47 to be provided witha reception portion for receiving the broadcast image data, and forencoded image data that have been transmitted or broadcast to be decodedby the reception portion and converted to image data that can beprocessed by the visual processing portion 1. Thus, by the CPU 41executing the processing steps of the visual processing device 1′ on theinput image data, and displaying those data with the output portion 45,it is possible to achieve a digital television.

Here, the processing steps of the visual processing device 1′ can beexecuted on a visual processing device that corrects an image signalthat has been input and outputs the result, through a visual processingstep of outputting a first gain signal having predetermined gaincharacteristics with respect to the image signal, a gain control step ofcorrecting the first gain signal with a predetermined correction valuethat has been set and outputting a second gain signal, and a correctionstep of correcting the image signal based on the second gain signal.

Here, as the gain control step, it is possible to execute a step ofincreasing or reducing the difference between the x1 signal and the gainsignal with a predetermined correction value.

It is also possible to execute the gain control step by performing astep of interpolating or extrapolating the x1 signal and the first gainsignal with a predetermined value.

It is also possible to further execute a spatial processing step ofperforming predetermined spatial processing on the image signal andoutputting the processed signal, and to execute a visual processing stepof outputting a first gain signal having gain characteristics based onthe image signal and the processed signal.

The above processing steps are consecutively performed by the CPU 41according to a program stored in the ROM 42 or the memory portion 46.Here, the 2D LUT can be temporarily stored using the RAM 43.

The program can be adopted by devices that handle images, such asinformation processing devices, televisions, digital cameras, portabletelephones, PDAs, and game machines. The program is stored on a memorydevice such as a memory, a hard disk, or a ROM in a device that isinstalled in or connected to the device for handling images, and causesa computer to execute visual processing such as contrast adjustment ofthe image. The program is made available through a storage medium suchas a memory card 51 or a disk 50, or through a network.

It is also possible for the visual processing device to be installed inor connected to a device that handles moving images, and processesimages by frame or by field.

OTHER EMBODIMENTS

With conventional contrast adjustment technologies (such as thetechnology of JP H4-150171A), R, G, and B video signals are input andthe brightness of the half tone level is changed to adjust the visualbrightness of the image within the dynamic range. In this case, thecorrection coefficient M is the ratio of the luminance signal Y beforegamma conversion and after gamma conversion, and the brightness wasadjusted by multiplying the correction coefficient M with each of the R,G, and B signals and outputting the result, without changing the balanceof the ratio of the R, G, and B signals. This contrast adjustmenttechnology had the problem that when the image signal is amplified andbecomes saturated, the gradation of the grayscale also becomes saturated(a predetermined signal level is reached) and this causes grayscaledistortion such as pseudo borders, which worsen the picture quality.

There is also the problem that since color saturation occurs inindividual pixels, lowering the overall contrast of the image in orderto inhibit grayscale or color saturation in some regions of the imageweakens the contrast of the color signal and results in a lighter color.This problem can be solved by a display device that is provided with avisual processing device described in a foregoing embodiment, and anintegrated circuit that includes the visual processing device.

In a separate contrast adjustment technology (such as the technology ofJP 2001-275015A), a gain coefficient is chosen from only a flattenedsignal of the image, and the image signal and the gain coefficient aremultiplied to adjust the brightness of the image.

This contrast adjustment technology had the problem that adjusting thesettings to increase the gain in order to brighten dark areas of theimage when the signal obtained by flattening the input image is smallcauses the output image to overflow and become saturated, and thisworsens the picture quality. This problem can be solved by a displaydevice that is provided with a visual processing device described in aforegoing embodiment, and an integrated circuit that includes the visualprocessing device.

With a contrast adjustment technology in which the RGB signals areseparated into a luminance signal and color signals and the contrast ofthe color signals is adjusted in correspondence with the adjustment ofthe contrast of the luminance signal, there is the problem that thesignal becomes saturated when the luminance signal and the color signalswhose contrast has been adjusted are converted back to RGB signals, andthis has the potential to cause color saturation. There also is theproblem that the color balance of the RGB signals is disrupted whencolor saturation occurs, causing the color to change. These problems canbe solved with a display device that is provided by a visual processingdevice described in a foregoing embodiment, and an integrated circuitthat includes the visual processing device.

With image-capturing devices, people are often backlit in video that iscaptured outdoors during the day because there is no lighting such asdedicated video lights, and displaying this video unchanged on a displaydevice or the like results in people's faces appearing black whenreproduced. Accordingly, there exists the technology of adjusting thebrightness so that the faces of people become an appropriate brightness(such as the technology of JP 2002-185771A).

With this technology, when the region of a person's face that has becomedark in a backlit image is made brighter, the luminance of thebackground region, which is already bright, is increased as well, andthus the luminance is limited at the largest value in the range of thesignal, saturating the grayscale. There was that problem that when thegrayscale is saturated (the signal level is fixed at the maximum value),grayscale distortions such as pseudo-borders occur and lower the imagequality. This problem can be solved by a display device that is providedwith a visual processing device described in a foregoing embodiment, andan integrated circuit that includes the visual processing device.

It should be noted that the specific configuration of the invention isnot limited to the foregoing embodiments, and various changes andmodifications are possible in a range that does not depart from the gistof the invention.

The visual processing device, the display device, and the integratedcircuit according to the invention allow precise contrast adjustment tobe executed on images, and can be utilized as a display device providedfor example in car navigation devices, portable devices, informationprocessing devices, image-capturing devices, portable informationdevices, digital still cameras, and game machines, and as an outputdevice such as a projector or a printer.

1. A visual processing device for correcting and then outputting animage signal that is input, comprising: a visual processing portion thatoutputs a first gain signal having predetermined gain characteristicsfor the image signal; and a correction portion that corrects the imagesignal based on the first gain signal.
 2. The visual processing deviceaccording to claim 1, further comprising: a gain limit portion thatlimits the first gain signal at a predetermined limit value that hasbeen set and outputs a second gain signal; wherein the correctionportion corrects the image signal based on the second gain signal. 3.The visual processing device according to claim 2, further comprising: aspatial processing portion that performs a predetermined spatialprocessing on the image signal and outputs a processed signal; whereinthe visual processing portion outputs a first gain signal that has gaincharacteristics based on the image signal and the processed signal. 4.The visual processing device according to claim 3, wherein the visualprocessing portion includes a two-dimensional lookup table whose inputsare the image signal and the processed signal.
 5. The visual processingdevice according to claims 2, wherein the image signal is a luminancesignal and a color signal; and wherein the correction portion includes:a first multiplication portion that multiplies the luminance signal andthe second gain signal and outputs a corrected luminance signal; and asecond multiplication portion that multiplies the color signal and thesecond gain signal and outputs a corrected color signal.
 6. The visualprocessing device according to claim 2, wherein the image signal is anRGB signal; and wherein the correction portion multiplies the RGB signaland the second gain signal and outputs a corrected RGB signal.
 7. Thevisual processing device according to claim 2, further comprising: amaximum value detection portion that detects a maximum value when theimage signal is converted to an RGB signal; and a first limit valuecalculation portion that calculates a predetermined limit value forsuppressing color saturation based on the maximum value that has beendetected.
 8. The visual processing device according to claim 2, furthercomprising: a signal level detection portion that calculates thepredetermined limit value according to a mean value of the signal levelthat has been detected from the image signals in a single frame or asingle field.
 9. The visual processing device according to claim 2,further comprising: a skin color detection portion that calculates thepredetermined limit value according to a degree of likeness to skincolor that is detected based on a weight function that has been set inadvance for the image signal.
 10. The visual processing device accordingto claim 2, further comprising: a data reception portion that receivesdata that have been transmitted or broadcast; a program informationseparating portion that separates program information from the data thathave been received; and a broadcast content detection portion thatcalculates a predetermined limit value according to the broadcastcontents that are detected from the program information.
 11. The visualprocessing device according to claim 2, further comprising: a datareception portion that receives data that have been transmitted orbroadcast; and an electric field strength detection portion that detectsan electric field strength value when the data are received andcalculates a predetermined limit value according to the electric fieldstrength value.
 12. A display device comprising: a data receptionportion that receives image data that have been transmitted orbroadcast; a decoding portion that decodes the image data that arereceived into video data; the visual processing device according toclaim 2 for visually processing the decoded video data and outputting anoutput signal; and a display portion for performing a display of theoutput signal that has been visually processed by the visual processingdevice.
 13. A display device comprising: a data input portion thatinputs image data; the visual processing device according to claim 2 forvisually processing the input image data and outputting an outputsignal; and a display portion for performing a display of the outputsignal that has been visually processed by the visual processing device.14. The visual processing device according to claim 1, furthercomprising: a spatial processing portion that performs a predeterminedspatial processing on the image signal and outputs a processed signal;wherein the visual processing portion outputs a gain signal that haspredetermined gain characteristics based on the image signal and theprocessed signal; and wherein the correction portion corrects thegrayscale of the image signal based on the gain signal.
 15. The visualprocessing device according to claim 14, wherein the visual processingportion outputs said gain signal in which the band of the spatialfrequency that can respond to the image signal is limited.
 16. Thevisual processing device according to claim 14, wherein the correctionportion has a contrast enhancement portion that outputs an enhancedsignal that is obtained by enhancing the contrast of the image signal;and wherein the correction portion corrects the grayscale of theenhanced signal.
 17. The visual processing device according to claim 16,wherein the contrast enhancement portion outputs the enhanced signalbased on the image signal and a band limited signal that is obtained bylimiting the spatial frequency band of the image signal.
 18. The visualprocessing device according to claim 17, wherein the contrastenhancement portion is provided with a two-dimensional lookup tablewhose inputs are the band limited signal and the image signal.
 19. Thevisual processing device according to claim 17, wherein the contrastenhancement portion outputs the enhanced signal based on the ratio ofthe band limited signal to the image signal.
 20. The visual processingdevice according to claim 17, wherein the contrast enhancement portionoutputs the enhanced signal based on the difference between the bandlimited image signal and the image signal.
 21. The visual processingdevice according to claim 14, wherein the visual processing portionoutputs the gain signal whose spatial frequency band that can respond tothe image signal has been limited; wherein the correction portion has acontrast enhancement portion that outputs an enhanced signal that isobtained by enhancing the contrast of the image signal; and wherein thecorrection portion corrects the grayscale of the enhanced signal. 22.The visual processing device according to claim 1, further comprising: again control portion that corrects the first gain signal with apredetermined correction value that has been set and outputs a secondgain signal; wherein the correction portion corrects the image signalbased on the second gain signal.
 23. The visual processing deviceaccording to claim 22, wherein the gain control portion magnifies orreduces the difference between the x1 signal and the first gain signalwith the predetermined correction value.
 24. The visual processingdevice according to claim 22, wherein the gain control portioninterpolates or extrapolates the x1 signal and the first gain signalwith the predetermined correction value.
 25. The visual processingdevice according to claim 22, further comprising: a spatial processingportion that performs a predetermined spatial processing on the imagesignal and outputs a processed signal; wherein the visual processingportion outputs said first gain signal having predetermined gaincharacteristics based on the image signal and the processed signal. 26.The visual processing device according to claim 25, wherein the visualprocessing portion has a two-dimensional lookup table.
 27. The visualprocessing device according to claim 22, wherein the image signal is aluminance signal and a color signal; and wherein the correction portionincludes: a first multiplication portion that multiplies the luminancesignal and the second gain signal and outputs a corrected luminancesignal; and a second multiplication portion that multiplies the colorsignal and the second gain signal and outputs a corrected color signal.28. The visual processing device according to claim 22, wherein theimage signal is an RGB signal; and wherein the correction portionmultiplies the RGB signal and the second gain signal and outputs acorrected image signal.
 29. The visual processing device according toclaim 22, further comprising: a maximum value detection portion thatdetects a maximum value when the image signal is converted to an RGBsignal; and a correction value calculation portion that calculates thepredetermined correction value for suppressing color saturation,according to the maximum value that has been detected.
 30. The visualprocessing device according to claim 22, further comprising: a signallevel detection portion that calculates the predetermined correctionvalue according to a mean value of the signal level that has beendetected from the image signals in a single frame or a single field. 31.The visual processing device according to claim 22, further comprising:a skin color detection portion that calculates the predeterminedcorrection value according to a degree of likeness to skin color that isdetected based on a weight function that has been set in advance for theimage signal.
 32. The visual processing device according to claim 22,further comprising: a data reception portion that receives data thathave been transmitted or broadcast; a program information separatingportion that separates program information from the data that have beenreceived; and a broadcast content detection portion that calculates thepredetermined correction value according to the broadcast contentsdetected from the program information.
 33. The visual processing deviceaccording to claim 22, further comprising: a data reception portion thatreceives data that have been transmitted or broadcast; and an electricfield strength detection portion that detects an electric field strengthvalue when the data are received and calculates the predeterminedcorrection value according to the electric field strength value.
 34. Adisplay device comprising: a data reception portion that receives imagedata that have been transmitted or broadcast; a decoding portion thatdecodes the image data that are received into video data; the visualprocessing device according to claim 22 for visually processing thedecoded video data and outputting an output signal; and a displayportion for performing a display of the output signal that has beenvisually processed by the visual processing device.
 35. A display devicecomprising: a data input portion that inputs image data; the visualprocessing device according to claim 22 for visually processing theinput image data and outputting an output signal; and a display portionfor performing a display of the output signal that has been visuallyprocessed by the visual processing device.
 36. An integrated circuitthat includes the visual processing device according to claim
 2. 37. Anintegrated circuit that includes the visual processing device accordingto claim
 14. 38. An integrated circuit that includes the visualprocessing device according to claim 22.